mysql允许远程访问
mysql -u用户名 -p 密码
mysql->use mysql;
mysql->grant all privileges on *.* to '用户名'@'%' identified by '密码';
mysql->flush privileges;
mysql->use mysql;
mysql->grant all privileges on *.* to '用户名'@'%' identified by '密码';
mysql->flush privileges;