mysql常用操作

修改密码:
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('zxcvbnm,./');

允许远程访问:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.144.111' IDENTIFIED BY 'zxcvbnm,./' WITH GRANT OPTION;

FLUSH PRIVILEGES;

如果出现10061无法远程则查看下防火墙
service iptables stop #停止
chkconfig iptables off #禁用

你可能感兴趣的:(mysql常用操作)