docker容器中登录mysql

docker exec -it mysql8 bash

mysql -uroot -h127.0.0.1 -p

输入密码,回车

 

posted on 2024-01-04 00:16  清清飞扬  阅读(48)  评论(0编辑  收藏  举报