当前位置:Gxlcms >
数据库问题 >
用工具软件远程链接数据库时报-1045 access denied错误
用工具软件远程链接数据库时报-1045 access denied错误
时间:2021-07-01 10:21:17
帮助过:4人阅读
今天尝试了用Navicat工具远程链接MySQL时报1045错误!
错误提示如下:
1045 access denied for user ‘root‘@192.168.0.101‘
原因是数据库禁止了远程链接
root@mysql01 00:32: [(none)]> use mysql
Database changed
root@mysql01 00:32: [mysql]> update user set host=‘%‘ where user=‘root‘;
Query OK, 1 row affected (0.01 sec)
Rows matched: 1 Changed: 1 Warnings: 0
root@mysql01 00:32: [mysql]> flush privileges;
Query OK, 0 rows affected (0.01 sec)
用工具软件远程链接数据库时报-1045 access denied错误
标签:match upd set row base cat 数据库 nav ted