📅  最后修改于: 2022-03-11 15:05:19.096000             🧑  作者: Mango
# 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