1. 登录mysql
mysql -uroot
2. 执行制授权命令
grant all privileges on *.* to root@'%' identified by '123456' with grant option;
3. 更新
flush privileges;
重启容器
微信扫一扫
1. 登录mysql
mysql -uroot
2. 执行制授权命令
grant all privileges on *.* to root@'%' identified by '123456' with grant option;
3. 更新
flush privileges;
重启容器
相关推荐