1. 程式人生 > 其它 >1130 - Host ‘***‘ is not allowed to connect to this MySQL server

1130 - Host ‘***‘ is not allowed to connect to this MySQL server

技術標籤:MySQLlinux

1130 - Host ‘***’ is not allowed to connect to this MySQL server的解決辦法

在這裡插入圖片描述
報錯原因:此時的MySQL配置不支援遠端連線
解決辦法:修改配置

1.linux進入資料庫
mysql -u root -p 密碼
2.檢視配置
select host, user from user;

在這裡插入圖片描述

3.修改配置
update user set host = '%' where user ='root';
4.執行以下命令使之生效
flush privileges;

修改完成,可以連線