/etc/mysql/mysql.conf.d/mysqld.cnf

注释掉

#bind-address = 127.0.0.1

service mysql restart