1 设置配置文件,把bind-address的那行注释了。
2 mysql中执行grant all PRIVILEGES on db_name.* to ‘username’@’xxx.xxx.xx.x’ identified by ‘password’ WITH GRANT OPTION;