玩转MySQL优化命令

1、MySQL更改为只能本地登录
# use mysql;
# select user,host,Password from user where user='root';
# delete from user where user='root' and host='%';

2、MySQL授予外网登陆权限

grant all privileges on *.* to 授予外网登陆的用户名@'%' identified by '密码' WITH GRANT OPTION;

# grant all privileges on *.* to root@'%' identified by 'root' WITH GRANT OPTION;
# flush privileges;

3、更改MySQL的存储目录

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理