[英]MySQL daemon failed to start
MySQL won't restart when I try "service mysqld restart"because I'm using this part in my.cnf
当我尝试“ service mysqld restart”时,MySQL无法重启,因为我在
my.cnf
使用了这部分
master-host = [private-IP-of-db01]
master-user = [replication-username]
master-password = [replication-password]
master-connect-retry = 60
when I comment out these parts! 当我注释掉这些部分时! MySQL restarts fine.
MySQL重新启动正常。 Why is that so?
为什么会这样? Also I have to include these lines in
my.cnf
because of master slave replication and I can't omit them out. 另外,由于主从复制,我还必须在
my.cnf
包含这些行,并且不能将其省略。
Usually master host information on the slave mysql server is stored in "master.info" file and maintained there. 通常,从属mysql服务器上的主控主机信息存储在“ master.info”文件中并进行维护。 You may want to start mysql without adding the configuration to your "my.cnf" file, the only configuration you may want to add is a "server_id" , Once mysql is up and running, you should setup slave with 'change master command....'.
您可能要启动mysql而不将配置添加到“ my.cnf”文件中,您可能要添加的唯一配置是“ server_id”,一旦mysql启动并运行,则应使用“ change master”命令设置slave。 ......“。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.