Ubuntu下开启Mysql的远程访问
2018-09-22 本文已影响0人
九竿儿_d0a1
第一步:
在目录/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';