当前位置:Gxlcms > 数据库问题 > mysql error:Host is not allowed to connect to this MySql server

mysql error:Host is not allowed to connect to this MySql server

时间:2021-07-01 10:21:17 帮助过:3人阅读

ALL PRIVILEGES ON *.* TO username@% IDENTIFIED BY password WITH GRANT OPTION; FLUSH PRIVILEGES;

2> 允许用户从指定IP访问mysql server

其中,host为特定IP地址

GRANT ALL PRIVILEGES ON *.* TO username@host IDENTIFIED BY password WITH GRANT OPTION;
FLUSH PRIVILEGES;

3> 允许用户从特定IP访问mysql server指定数据库

其中,host为特定IP地址

GRANT ALL PRIVILEGES ON dbname.* TO username@‘host IDENTIFIED BY password WITH GRANT OPTION;
FLUSH PRIVILEGES;

 

mysql error:Host is not allowed to connect to this MySql server

标签:

人气教程排行