mysql允许远程连接
mysql -uroot -p
grant all privileges on *.* to 'root'@'%' identified by 'abc' with grant option;
# abc为密码
flush privileges;
mysql -uroot -p
grant all privileges on *.* to 'root'@'%' identified by 'abc' with grant option;
# abc为密码
flush privileges;