进入mysql 容器
docker exec -it 容器id bash
修改用户登录权限
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY 'password WITH GRANT OPTION;
flush privileges;
进入mysql 容器
docker exec -it 容器id bash
修改用户登录权限
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY 'password WITH GRANT OPTION;
flush privileges;