0
点赞
收藏
分享

微信扫一扫

docker-mysql 1045-Access denied for user ‘root‘@‘localhost‘解决方法

非衣所思 2022-03-11 阅读 84

1、进入mysql

docker exec -it [docker-mysql] bash
mysql -uroot -p123456;

2、添加权限

grant all privileges on *.* to 'root'@'%' identified by '123456';
举报

相关推荐

0 条评论