修改密码:
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 #禁用
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 #禁用