1:远程连接问题
打开 /etc/mysql/mysql.conf.d/mysqld.cnf 注释掉 bind-address 127.0.0.1
2:给root用户相应权限
将root用户授权给所以连接:grant all privileges on *.* to 'root'@'%' identified by 'xxxxxx';
最后一个为mysql密码
让权限立即生效:flush privileges;
打开 /etc/mysql/mysql.conf.d/mysqld.cnf 注释掉 bind-address 127.0.0.1
将root用户授权给所以连接:grant all privileges on *.* to 'root'@'%' identified by 'xxxxxx';
最后一个为mysql密码
让权限立即生效:flush privileges;