1、进入mysql
docker exec -it [docker-mysql] bash
mysql -uroot -p123456;
2、添加权限
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' identified by 'ewrwerwe' WITH GRANT OPTION;
1、进入mysql
docker exec -it [docker-mysql] bash
mysql -uroot -p123456;
2、添加权限
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' identified by 'ewrwerwe' WITH GRANT OPTION;