今天把5.7.12的备份恢复到5.7.17,启动数据库之后,遇到错误,如下:
-
2017-02-09T08:01:58.275817Z 0 [ERROR] Info table has a problem with its key field(s). Table 'mysql.slave_master_info' expected field #23 to be 'Channel_name' but found 'Tls_version' instead.
-
2017-02-09T08:01:58.279951Z 0 [ERROR] Incorrect definition of table performance_schema.replication_connection_status: expected column 'RECEIVED_TRANSACTION_SET' at position 7 to have type longtext
-
, found type text.
-
2017-02-09T08:01:58.280237Z 0 [ERROR] Incorrect definition of table performance_schema.replication_group_member_stats: expected column 'COUNT_TRANSACTIONS_ROWS_VALIDATING' at position 6, found 'CO
-
UNT_TRANSACTIONS_VALIDATING'
-
错误的原因是升级到5.7.17后,有一些表的结构改变了,执行mysql_upgrade命令即可修复。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/20893244/viewspace-2133318/
,如需转载,请注明出处,否则将追究法律责任。