复制远程数据库Mysql

时间:2017-12-04 17:29:15

标签: mysql linux replication pid

我正在遵循本教程(http://www.linux-party.com/42-mysql/8628-como-replicar-una-de-base-de-datos-de-mysql-2-de-2)..

当我使用以下参数配置slave(my.cnf)时:

server-id=2
master-host=xxx.xxx.xxx.xxx
master-user=root
master-password=xxxxxxxxx
master-connect-retry=60
replicate-do-db=db_mirror 

重新启动mysql,我收到以下错误:

ERROR! MySQL server PID file could not be found!
Starting MySQL.. ERROR! The server quit without updating PID file 
(/var/lib/mysql/xxxxxxxxx.com.pid)

有什么建议吗?

由于

1 个答案:

答案 0 :(得分:0)

文件my.cnf配置错误....