SQL错误(1130): Host IP is not allowed to connect to this MySQL server
- 作者: wolfri
- 来源: 51数据库
- 2020-08-29
|
使用heidisql和navicat连接远程mysql时报错 shell模式下输入: #mysql -u root -p 输入密码后进入 mysql>usem ysql; mysql>update user set host='%' where user='root'; #此处有可能提示记录重复,删除多余的记录即可 mysql>flush privileges; #修改后一定要刷新,否则当时无法生效 mysql>select 'host','user'from user where user='root'; mysql>quit |
推荐阅读
