用工具軟件遠程鏈接數據庫時報-1045 access denied錯誤

今天嘗試了用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)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章