使用127.0.0.1能访问mysql但168.x.x.x不能时
mysql>grant all privileges on *.* to root@'%' identified by 'your root password';//没密码可填''
成功显示query ok
mysql>flush privileges;