重庆熊猫 Loading

禁止、允许MySQL root用户远程访问权限

关闭MySQL root用户远程访问权限:

use mysql;
update user set host = "localhost" where user = "root" and host = "%";
flush privileges;

打开MySQL root用户的远程访问权限:

危险操作!!!

use mysql;
update user set host = "%" where user = "root";
flush privileges;
posted @ 2024-03-14 17:49  重庆熊猫  阅读(67)  评论(0编辑  收藏  举报