叢庫復制停止,進叢庫查看,報錯1007,數據庫已存在,不能創建數據庫
mysql> show slave status\G;
Slave_IO_Running: Yes
Slave_SQL_Running: No
Last_Errno: 1007
Last_Error: Error 'Can't create database 'test'; database exists' on query
對于該報錯,解決辦法1,跳過該步驟:
mysql> stop slave;
mysql> set global sql_slave_skip_counter=1
mysql> start slave;
解決辦法2,根據可以忽略的錯誤號修改配置文件:
vim /etc/my.cnf
slave-skip-errors=1007,1008,1032,1062