允许 root 用户远程连接 mysql 数据库
进入 mysql 库,输入下面的命令:
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option; # 123456 是 root 的登陆密码
flush privileges;
查看结果:
SELECT user, host, password from user;
参考:
允许 root 用户远程连接 mysql 数据库
进入 mysql 库,输入下面的命令:
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option; # 123456 是 root 的登陆密码
flush privileges;
查看结果:
SELECT user, host, password from user;
参考: