1、授权

mysql>grant all privileges on *.*  to  'root'@'%'  identified by 'youpassword'  with grant option;
mysql>flush privileges;
 
2、关闭防火墙或开放3306端口

相关文章: