1、修改:/etc/mysql/mysql.conf.d/mysqld.cnf文件中的bind-address 127.0.0.1这一行。
将该行注释
2、重启mysql服务
service mysql restart
====================================================================
3、修改数据库mysql,user表中root用户hostname为‘%’
1、修改:/etc/mysql/mysql.conf.d/mysqld.cnf文件中的bind-address 127.0.0.1这一行。
将该行注释
2、重启mysql服务
service mysql restart
====================================================================
3、修改数据库mysql,user表中root用户hostname为‘%’