1.在/etc/mysql/mysql.conf.d/mysqld.cnf 文件下,注释
#bind-address = 127.0.0.1
2.重启数据库服务
service mysqld restart