登录mysql
mysql -uroot -p密码 登陆到数据:
执行use mysql;
select host,user,password from user;
可以看到user为root,host为localhost的话,说明mysql只允许本机连接,那么外网,本地软件客户端就无法连接了。
调整方法:
执行:update user set host=’%’ where user =‘root’;
执行刷新权限:flush privileges;
可以测试外网连接mysql服务器。
相关文章
- 11-02解决报错:错误1130- Host xxx is not allowed to connect to this MariaDb server 九五小庞
- 11-02mysql message from server: "Host ‘xxx‘ is not allowed to connect to th
- 11-02Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号
- 11-02java.sql.SQLException: null, message from server: "Host '192.168.126.100' is not allowed to connect to this MySQL server"
- 11-02java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect to this MySQL server"
- 11-02连接远程数据库时出现 SSH: expected key exchange group packet from server / 2003 - Can't connect to MySQL server on 'XXX' (10038) / 1130 - Host 'XXX' is not allowed to connect to this MySQL server
- 11-02Mysql报错java.sql.SQLException:null,message from server:"Host '27,45,38,132' is not allowed to connect
- 11-02Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号
- 11-02解决报错:错误1130- Host xxx is not allowed to connect to this MariaDb server
- 11-02java.sql.SQLException: null, message from server: "Host 'DESKTOP-1PCF1N3' is not allowed to connect to this MySQL server"......