You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support disabling sql_generate_invisible_primary_key via MySQL configuration entry (resolves MySQL 8.x issue as reported by REDCap database checks)
#52
Open
epopisces opened this issue
Nov 20, 2023
· 1 comment
As reported in the REDCap Community forums, building REDCap from scratch when using the latest 8.x version of MySQL is (sporadically) resulting in the following error: YOUR REDCAP DATABASE STRUCTURE IS INCORRECT
The solution is to set the sql_generate_invisible_primary_key value on the MySQL flexible server to 'OFF' prior to running the REDCap install script for the database.
Via Terraform these could be implemented via an azurerm_mysql_flexible_server_configuration resource:
I have not yet tested whether this has an impact when using prior version of MySQL: if so it could include a count = startswith(var.mysqlVersion, "8") ? 1 : 0. Or even better such a conditional used in a locals block should add a map an argument to a merge() function such as suggested in #50 (preferred).
The text was updated successfully, but these errors were encountered:
epopisces
changed the title
Support disabling sql_generate_invisible_primary_key MySQL configuration entry (resolves MySQL 8.x issue as reported by REDCap database checks)
Support disabling sql_generate_invisible_primary_key via MySQL configuration entry (resolves MySQL 8.x issue as reported by REDCap database checks)
Nov 20, 2023
epopisces
changed the title
Support disabling sql_generate_invisible_primary_key via MySQL configuration entry (resolves MySQL 8.x issue as reported by REDCap database checks)
Terraform: support disabling sql_generate_invisible_primary_key via MySQL configuration entry (resolves MySQL 8.x issue as reported by REDCap database checks)
Nov 20, 2023
epopisces
changed the title
Terraform: support disabling sql_generate_invisible_primary_key via MySQL configuration entry (resolves MySQL 8.x issue as reported by REDCap database checks)
Support disabling sql_generate_invisible_primary_key via MySQL configuration entry (resolves MySQL 8.x issue as reported by REDCap database checks)
Nov 20, 2023
As reported in the REDCap Community forums, building REDCap from scratch when using the latest 8.x version of MySQL is (sporadically) resulting in the following error:
YOUR REDCAP DATABASE STRUCTURE IS INCORRECT
The solution is to set the
sql_generate_invisible_primary_key
value on the MySQL flexible server to 'OFF' prior to running the REDCap install script for the database.Via Terraform these could be implemented via an
azurerm_mysql_flexible_server_configuration
resource:I have not yet tested whether this has an impact when using prior version of MySQL: if so it could include a
count = startswith(var.mysqlVersion, "8") ? 1 : 0
. Or even better such a conditional used in a locals block should add a map an argument to a merge() function such as suggested in #50 (preferred).The text was updated successfully, but these errors were encountered: