时间:2021-07-01 10:21:17 帮助过:4人阅读
#登录mysql
mysql -uroot -p;
use mysql;
#所有ip能访问
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘123‘ WITH GRANT OPTION;
#设置某个ip能访问
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘192.168.1.3‘ IDENTIFIED BY ‘123‘ WITH GRANT OPTION;
#刷新权限
FLUSH PRIVILEGES;
服务器安装mysql后配置远程访问权限
标签:option mysq 权限 mys class 访问 tle mysql post