📜  如何在 docker 中打开 mysql - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:19.096000             🧑  作者: Mango

代码示例1
# login into mysql
docker logs mysql1 2>&1 | grep GENERATED # check the automatically generated password of root user, copy it
docker exec -it mysql1 mysql -u root -p # parse and press the Enter key