一、登陆mysql以后执行以下命令:
GRANT ALL ON *.* TO username@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; FLUSH PRIVILEGES;
二、修改/etc/mysql/my.cnf,注释以下行:
skip-networking
三、重启mysql服务。
一、登陆mysql以后执行以下命令:
GRANT ALL ON *.* TO username@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; FLUSH PRIVILEGES;
二、修改/etc/mysql/my.cnf,注释以下行:
skip-networking
三、重启mysql服务。