Answers for "show databases mysql docker"

SQL
1

show databases mysql docker

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;
Posted by: Guest on May-14-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language