https://blog.csdn.net/weixin_42242494/article/details/80630267
- 在shell中访问mysql
docker exec -it mingxie-mysql bash
root@7c289aa0ca95:/#
mysql -uroot -p -h localhost
Enter password:
输入密码即可。
- 在shell中访问mysql日志
$ docker logs mingxie-mysql
https://blog.csdn.net/weixin_42242494/article/details/80630267
docker exec -it mingxie-mysql bash
root@7c289aa0ca95:/#
mysql -uroot -p -h localhost
Enter password:
输入密码即可。
$ docker logs mingxie-mysql