当前位置: 代码迷 >> 综合 >> ‘Host’ is not allowed to connect to this mysql server
  详细解决方案

‘Host’ is not allowed to connect to this mysql server

热度:58   发布时间:2023-11-23 11:36:56.0

‘Host’ is not allowed to  connect to this mysql server

不允许“主机”连接到此MyS QL服务器


1、进入mysql数据库,选择mysql 

2、更新 user表的host,

select *  from user

update user set host = '%' where user='root'

3、重启服务(cmd命令框)

net stop mysql

net start mysql


检查服务器端口

telnet 123.123.0.123   8080

未开启:

正在连接123.123.0.123...无法打开到主机的连接。 在端口 8080: 连接失败

 

  相关解决方案