MySQL和Shell命令交互执行_mysql进入容器执行show databases shell-CSDN博客

网站介绍:文章浏览阅读1.2k次。1、在Shell中执行MySQL相关查询通过参数-e[root@node1 ~]# mysql -uroot -p123456 -e "show databases"mysql: [Warning] Using a password on the command line interface can be insecure.+--------------------+| Database |+--------------------+| employees _mysql进入容器执行show databases shell