1130mysql报错

发布时间: 2023-11-21 11:51 阅读: 文章来源:1MUMB2268PS
navicat链接mysql报错1130-hos txxx.xxx.xxx.xxx is not allowed to connect to this MySql server

解决方案:

1、首先登录mysql

[root@VM_1245_centos myproject]# mysql -u root -pEnter password:

2、进入mysql数据库mysql> use mysql;

3、查看mysql数据库系统用户表usermysql> select host from user where user=‘root‘;

4、修改user表中的Host:mysql> select host from user where user=‘root‘;

5、最后刷新mysql> flush privileges;

6、再次连接成功

•••展开全文