eg: error;;;;;;;;;;;;;;
HOST is not allowed to connect to this MysQL server
解决方法:
grant all privileges on *.* to 'root'@'%' identified by 'rootpassd' with grant option;
FLUSH PRIVILEGES;
如果将 ‘%’换成 ‘10.1.1.1’那么将只允许10.1.1.1这个IP访问mysql server
如果现在重新修改了mysql密码,而之前做了主从同步的,要注意/etc/my.cnf里的密码是否一致