Manager of pid-file quit without updating file(レプリケーション編)
Manager of pid-file quit without updating file というエラーに遭遇した際にはまったのでメモ。
ここにいいまとめがありました。
結論から言うと、my.cnfに誤りがありました。
その際のerror.logメッセージはこちら
[Warning] The syntax 'for replication startup options' is deprecated and will be removed in a future release. Please use 'CHANGE MASTER' instead.
で、my.cnfに書いてあるレプリケーションの設定をコメントアウト
#master-host = 11.1.11.11 #master-port = 3306 #master-user = repl #master-password = hogehoge #relay-log = relay_log/relay_bin #relay-log-index = relay_log.index #relay-log-info-file = relay_log.info #max_relay_log_size = 1000M #replicate-ignore-db = mysql #replicate-do-db = db_name
これでエラーは解決。
どうやらMysql5.1系だとレプリケーションの設定をmy.cnfに書くのはいかんのかな。。。