mysql的一个拒绝访问错误的解决_MySQL
时间:2021-07-01 10:21:17
帮助过:5人阅读
bitsCN.com
最近有几个人问我相同问题,安装了mysql,然后用 telnet ip 3306,端口后报
Host 192.168.1.163 is not allowed to connect to this MySQL serverConnection closed by foreign ,虽然自己以前也碰到过,后来解决了,但是觉得还是值得贴出来,估计会有很多人同样碰到过,
解决办法:
mysql>UPDATE mysql.user SET Host=% WHERE Host=localhost;
mysql>GRANT ALL PRIVILEGES ON *.* TO root@"%" ;
mysql>FLUSH PRIVILEGES;
bitsCN.com