第一步:
在目录/etc/mysql下找到my.cnf,用vim编辑,找到my.cnf里面的
cd /etc/mysql/mysql.conf.d/mysqld.cnf
bind-address = 0.0.0.0
第二步:
use mysql;
update user set host = '%' where user = 'root';
第一步:
在目录/etc/mysql下找到my.cnf,用vim编辑,找到my.cnf里面的
cd /etc/mysql/mysql.conf.d/mysqld.cnf
bind-address = 0.0.0.0
第二步:
use mysql;
update user set host = '%' where user = 'root';