#在数据库中创建用于MHA系统工作的管理员权限账号 #node1 mysql --login-path=3109 -e 'create user mha@'192.168.1.8' identified by 'sa123456'' mysql --login-path=3109 -e 'grant all privileges on *.* to mha@'192.168.1.8'' mysql --login-path=3109 -e 'flush privilges' #node2 mysql --login-path=3110 -e 'create user mha@'192.168.1.8' identified by 'sa123456'' mysql --login-path=3110 -e 'grant all privileges on *.* to mha@'192.168.1.8'' mysql --login-path=3110 -e 'flush privilges'