1. 登录mysql
mysql -uroot
2. 执行制授权命令
grant all privileges on *.* to root@'%' identified by '123456' with grant option;
3. 更新
flush privileges;
重启容器
为mysql设置远程访问权限命令
阅读 128
2022-02-16
1. 登录mysql
mysql -uroot
2. 执行制授权命令
grant all privileges on *.* to root@'%' identified by '123456' with grant option;
3. 更新
flush privileges;
重启容器
相关推荐
精彩评论(0)