-
docker-compose
起的数据库没有操作权限
解决:
- 进入容器:
docker exec -it 243c32535da7(container_id) /bin/bash
mysql -uroot -p
use mysql;
delete from user where User='root';
grant all privileges on *.* to 'root'@'localhost' identified by "password" with grant option;
docker-compose
起的数据库没有操作权限docker exec -it 243c32535da7(container_id) /bin/bash
mysql -uroot -p
use mysql;
delete from user where User='root';
grant all privileges on *.* to 'root'@'localhost' identified by "password" with grant option;