Home  >  Article  >  Database  >  MYSQL拒绝访问报错not allowed to connect

MYSQL拒绝访问报错not allowed to connect

WBOY
WBOYOriginal
2016-06-07 16:28:591446browse

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身份登录啦!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn