mirror of
https://github.com/zebrajr/server.git
synced 2025-12-06 12:20:40 +01:00
Fatal error: mysql.user table is damaged or in unsupported 3.20 format The problem stems from MySQL 5.7.6. According to MySQL documentation: In MySQL 5.7.6, the Password column was removed and all credentials are stored in the authentication_string column. If opening a MySQL 5.7.6 (and up) datadir with MariaDB 10.2, the user table appears corrupted. In order to fix this, the server must be started with --skip-grant-tables and then a subsequent mysql_upgrade command must be issued. This patch updates the mysql_upgrade command to also add the removed Password column. The password column is necessary, otherwise the mysql_upgrade script fails due to the Event_scheduler not being able to start, as it can't find Event_priv in the table where it ought to be. MySQL's version has column position 28 (0 index) vs our datadir version expects position 29. |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| comp_sql.c | ||
| convert-debug-for-diff.sh | ||
| dheadgen.pl | ||
| fill_help_tables.sql | ||
| galera_new_cluster.sh | ||
| galera_recovery.sh | ||
| make_win_bin_dist | ||
| maria_add_gis_sp.sql.in | ||
| mariadb-service-convert | ||
| msql2mysql.sh | ||
| mysql_config.pl.in | ||
| mysql_config.sh | ||
| mysql_convert_table_format.sh | ||
| mysql_find_rows.sh | ||
| mysql_fix_extensions.sh | ||
| mysql_install_db.pl.in | ||
| mysql_install_db.sh | ||
| mysql_performance_tables.sql | ||
| mysql_secure_installation.pl.in | ||
| mysql_secure_installation.sh | ||
| mysql_setpermission.sh | ||
| mysql_system_tables_data.sql | ||
| mysql_system_tables_fix.sql | ||
| mysql_system_tables.sql | ||
| mysql_test_data_timezone.sql | ||
| mysql_to_mariadb.sql | ||
| mysqlaccess.conf | ||
| mysqlaccess.sh | ||
| mysqld_multi.sh | ||
| mysqld_safe.sh | ||
| mysqldumpslow.sh | ||
| mysqlhotcopy.sh | ||
| mytop.sh | ||
| wsrep_sst_common.sh | ||
| wsrep_sst_mysqldump.sh | ||
| wsrep_sst_rsync.sh | ||
| wsrep_sst_xtrabackup-v2.sh | ||
| wsrep_sst_xtrabackup.sh | ||