玩轉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的存儲目錄
相關文章
相關標籤/搜索