edrp.cn的Blog

学习,需要交流,欢迎大家和我共同来学习C#,ASP.NET,MS SQL Server开发Web项目,欢迎大家和我交流

博客园 首页 新随笔 联系 订阅 管理

在服务器上执行如下操作:

 # docker exec -it local_mysql_new  mysql -uroot -p

然后输入数据库密码即可

Enter password:

登录成功后的信息:

 

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 5.7.29 MySQL Community Server (GPL)

Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

命令中的:local_mysql_new为mysql 数据的容器名

posted on 2020-05-13 11:00  edrp.cn  阅读(428)  评论(0编辑  收藏  举报