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;
重启容器