玩转MySQL优化命令

33次阅读

共计 304 个字符,预计需要花费 1 分钟才能阅读完成。

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 的存储目录

正文完
 0