我正在尝试使用工作台控制台运行 mysqlfailover:
mysqlfailover --master=root@localhost:3306 --discover-slaves-login='root' --log=log.txt
我收到错误:
ERROR: Cannot connect to the master server.
Error 1045: Access denied for user 'root'@'localhost' (using password: NO)
我尝试用谷歌搜索但一无所获。 Mysql版本为5.6.17。
最佳答案
这个错误只是说用户 root@localhost 不允许在没有密码的情况下执行这个命令。如果你为 root@user 修改你的密码设置为“mysqlfailover --master=root:YOURMYSQLPASSWORDFORROOT@localhost:3306 --discover-slaves-login='root' --log=log .txt”
这应该可以解决问题。
关于mysqlfailover 命令给出错误 1045 : Access denied for user 'root' @'localhost' (using password: NO),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23336061/