Home > Database > Mysql Tutorial > body text

MYSQL拒绝访问报错not allowed to connect_MySQL

WBOY
Release: 2016-06-01 13:05:23
Original
1073 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template