mysql 关闭root远程访问

关闭远程访问:
mysql -uroot -p
use mysql;
update user set host = “localhost” where user = “root” and host= “%”;
flush privileges;

发表评论