第一步:?
在目錄/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';