标签:
一、登陆mysql以后执行以下命令:
GRANT ALL ON *.* TO username@‘%‘ IDENTIFIED BY ‘password‘ WITH GRANT OPTION; FLUSH PRIVILEGES;
二、修改/etc/mysql/my.cnf,注释以下行:
skip-networking
三、重启mysql服务。
开启mysql远程访问
原文地址:http://www.cnblogs.com/jameszh/p/4235992.html