lnmp mysql开启远程访问

2020-10-14 10:19:07 阅读:1 编辑

1、支持root用户允许远程连接mysql数据库

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