Mysql受权远程登陆
错误缘由:sql
...null, message from server: "Host 'XXX' is not allowed to connect t
操做步骤:数据库
第一步:打开mql连接工具,参考下图:ide
第二步:找到要设置受权的数据库,点击查询,新建查询,以下图:工具
第三步:输入受权指令测试
1 grant all privileges on *.* to '用户名'@'%' identified by '登陆密码' with grant option; 2 3 /** 4 *例如:grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option; 5 **/
1 flush privileges;
第四步:测试,受权成功,问题已解决spa