时间:2021-07-01 10:21:17 帮助过:16人阅读
1、进入mysql :mysql -u root -p
2、选择系统库: use mysql
3、然后执行修改权限的命令:GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘root‘ WITH GRANT OPTION;
4、清除缓存: flush privileges;
5、查看:select host,user from user;
6、局域网内就可以允许远程登录
mysql 远程访问
标签:select 命令 sel from user option 选择 缓存 mysq