|-开始执行同步命令: stop slave ...
|-正在获同步数据...
|-执行命令...export MYSQL_PWD=bayofmaxpandaXO580YESOK &&/usr/bin/mysql -uroot -e 'stop slave' && export MYSQL_PWD=''
|-执行同步命令成功...{'status': True, 'msg': "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)"}
|-开始执行同步命令: start slave ...
|-正在获同步数据...
|-执行命令...export MYSQL_PWD=bayofmaxpandaXO580YESOK &&/usr/bin/mysql -uroot -e 'start slave' && export MYSQL_PWD=''
|-执行同步命令成功...{'status': True, 'msg': "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)"}
|-主从重启完成!
|-正在获同步数据...
|-正在检测主从状态...
|-开始执行同步命令: show slave status\G ...
|-正在获同步数据...
|-执行命令...export MYSQL_PWD=bayofmaxpandaXO580YESOK &&/usr/bin/mysql -uroot -e 'show slave status\G' && export MYSQL_PWD=''
|-执行同步命令成功...{'status': True, 'msg': "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)"}
|-开始执行同步命令: show slave status\G ...
|-正在获同步数据...
|-执行命令...export MYSQL_PWD=bayofmaxpandaXO580YESOK &&/usr/bin/mysql -uroot -e 'show slave status\G' && export MYSQL_PWD=''
|-执行同步命令成功...{'status': True, 'msg': "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)"}
同步前已经将从数据库的root密码改成和主数据库的一样,但还是报错
|
|