时间:2021-07-01 10:21:17 帮助过:3人阅读
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
标签: