GTID已被closures但我有复制错误

我只是从mariadb5升级到mariadb10。 然后我有我的奴隶复制错误

无法从mysql.gtid_slave_pos加载复制GTID从属状态:表'mysql.gtid_slave_pos'不存在

我的这个复制主没有使用GTID,为什么会出现这个错误。 虽然我有这个错误我的slave_IO和slave_SQL仍在运行。

这是我的奴隶地位供参考

*************************** 1. row ******************** *******
Slave_IO_State:等待主控发送事件
Master_Host:172.19.19.149
Master_User:从属
Master_Port:3306
Connect_Retry:10
Master_Log_File:mysql-bin.000385
Read_Master_Log_Pos:564
Relay_Log_File:migrate-relay-bin.000002
Relay_Log_Pos:535
Relay_Master_Log_File:mysql-bin.000385
Slave_IO_Running:是的
Slave_SQL_Running:是的
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno:1146
Last_Error:无法从mysql.gtid_slave_pos加载复制GTID从属状态:表'mysql.gtid_slave_pos'不存在
Skip_Counter:0
Exec_Master_Log_Pos:564
Relay_Log_Space:834
Until_Condition:无
Until_Log_File:
Until_Log_Pos:0
Master_SSL_Allowed:否
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master:0
Master_SSL_Verify_Server_Cert:否
Last_IO_Errno:0
Last_IO_Error:
Last_SQL_Errno:1146
Last_SQL_Error:无法从mysql.gtid_slave_pos加载复制GTID从属状态:表'mysql.gtid_slave_pos'不存在
Replicate_Ignore_Server_Ids:
Master_Server_Id:30
Master_SSL_Crl:
Master_SSL_Crlpath:
Using_Gtid:不
Gtid_IO_Pos:

谢谢。

我已经通过运行mysql_upgrade修复了这个复制,我忘了在将MariaDB从5更新到10之后运行。

谢谢

有时一个mysql_upgrade不会解决这个,这将失败,以下错误mysql.gtid_slave_pos错误:表'mysql.gtid_slave_pos'不存在引擎状态:操作失败

在这种情况下,您将不得不重新创build表格。 http://alidba.blogspot.in/2017/05/table-mysqlgtidslavepos-doesnt-exist.html