[root@izbp163wlhi02tcaxyuxb7z ~]# docker exec -it mysql1 bash //mysql1是我启动的mysql服务的name
 
root@654c15160c66:/# mysql -uroot -p
Enter password: 
//输入密码即可
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 8.0.11 MySQL Community Server - GPL
 
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.
 
mysql> 

  原文:https://blog.csdn.net/weixin_39800144/article/details/80872515 

相关文章:

  • 2021-10-05
  • 2021-07-05
  • 2021-05-09
  • 2021-11-19
  • 2021-06-20
  • 2021-07-16
  • 2021-11-23
  • 2021-04-23
猜你喜欢
  • 2021-12-31
  • 2021-12-03
  • 2022-02-08
  • 2021-08-04
  • 2021-08-23
  • 2021-08-27
相关资源
相似解决方案