Rumah >pangkalan data >tutorial mysql >MYSQL拒绝访问报错not allowed to connect
mysql报如下错误,截取部分, message from server: "Host '****' is not allowed to connect to this MySQL server 1:在登录mysql服务器 2:执行:GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION //赋予任何主机访问数据的权限 3:FLUSH PRIVI
mysql报如下错误,截取部分,
message from server: "Host '****' is not allowed to connect to this MySQL server
1:在登录mysql服务器
2:执行:GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION //赋予任何主机访问数据的权限
3:FLUSH PRIVILEGES //修改生效
这样就可以在其它任何的主机上以root身份登录啦!