大体上解决这个错误的方案是:给mysql添加远程登陆权限。
mysql>grant all privileges on *.* to '用户名'@'%' identified by '连接命令' with grant option;
mysql>grant all privileges on *.* to '用户名'@'主节点名' identified by '连接命令’with grant option;
mysql>flush privileges;
大体上解决这个错误的方案是:给mysql添加远程登陆权限。
mysql>grant all privileges on *.* to '用户名'@'%' identified by '连接命令' with grant option;
mysql>grant all privileges on *.* to '用户名'@'主节点名' identified by '连接命令’with grant option;
mysql>flush privileges;