玩转MySQL优化命令

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

二、MySQL授予外网登录权限

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

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

三、更改MySQL的存储目录
相关文章
相关标签/搜索