📜  显示数据库 mysql docker - SQL 代码示例

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

代码示例1
First, go inside docker container, run below command
docker exec -it mysql_container_name mysql -uroot -p
where “root” is the username for MySQL database. After running above command it will ask you a password.

Then Select Database, run below command
USE Name-Of-The-Database

get the list of all tables.
show tables;