centos mysql 允许远程访问

1、首先进入数据库,使用系统数据库mysql,登录

mysql -u root -p mysql

2、对系统数据库的root账户设置远程访问的密码,与本地的root访问密码并不冲突。123456为我设置的密码

grant all privileges on *.* to 'root'@'%%' identified by '123456' with grant option;

3、重启服务器,一定

猜你喜欢

转载自blog.csdn.net/solocao/article/details/81414471