添加远程用户:
use mysql;
update user set host = "%" where user = "root";
grant all privileges on *.* to root@"%" identified by 'password' with grant option;
flush privileges;
关闭远程访问:
use mysql;
update user set host = "localhost" where user = "root" and host= "%";
flush privileges;
查看用户权限:
use information_schema;
select * from user_privileges;
本文介绍如何在MySQL中配置用户以支持远程访问,包括添加远程用户、关闭远程访问及查看用户的权限等操作步骤。
1691

被折叠的 条评论
为什么被折叠?



