ERROR 1198 (HY000): This operation cannot be performed with a running slave; run STOP SLAVE first

我在MariaDB(Mysql)从库输入与主库的连接信息时发生错误

具体报错如下

Database changed
MariaDB [mysql]> CHANGE MASTER TO
    -> MASTER_HOST='192.168.1.142',
    -> MASTER_USER='root',
    -> MASTER_PASSWORD='root',
    -> MASTER_LOG_FILE='binlog.000018',
    -> MASTER_LOG_POS=472;
ERROR 1198 (HY000): This operation cannot be performed with a running slave; run STOP SLAVE first

解决办法,尝试停止slave,输入完连接信息在重新连接

命令:slave stop;

连接成功:

ERROR 1198 (HY000): This operation cannot be performed with a running slave; run STOP SLAVE first_第1张图片

你可能感兴趣的:(各种集群部署)