MySQL錯誤之mysql.slave_master_info

甲骨文技術支援發表於2017-02-09

今天把5.7.12的備份恢復到5.7.17,啟動資料庫之後,遇到錯誤,如下:


  1. 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.
  2. 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
  3. , found type text.
  4. 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
  5. UNT_TRANSACTIONS_VALIDATING'

錯誤的原因是升級到5.7.17後,有一些表的結構改變了,執行mysql_upgrade命令即可修復。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20893244/viewspace-2133318/,如需轉載,請註明出處,否則將追究法律責任。

相關文章