1. 程式人生 > >ERROR 1794 (HY000): Slave is not configured or fai

ERROR 1794 (HY000): Slave is not configured or fai

出現 重新啟動 數據 ESS -c found conf 錯誤 cool

mysql 5.7在從庫停止復制進程時出現錯誤,原因是將復制信息記錄表中了。


錯誤提示:

ERROR 1794 (HY000): Slave is not configured or failed to initialize properly. You must at least set --server-id to enable either a master or a slave. Additional error messages can be found in the MySQL error log.


解決方法:

use mysql
drop table slave_master_info;
drop table slave_relay_log_info;

drop table slave_worker_info;
drop table innodb_index_stats;
drop table innodb_table_stats;

source /usr/coolpad/mysql/share/mysql_system_tables.sql

重新啟動數據庫

ERROR 1794 (HY000): Slave is not configured or fai