docker-compose upTo stop and remove all containers of the sample application run:
docker-compose downTo stop and remove all containers with Volume of the sample application run:
docker-compose down -v
- username - root
- password - rajawat
- port - 3306
- Run the following command to open the mysql client terminal
Enter the password (Passw0rd.) when prompted.
user - rajawat/root password - rajawat/rajawat
docker exec -it mysql_container mysql -h localhost -u root -pOR
Enter the password in command itself
user - rajawat/root password - rajawat/rajawat
docker exec -it mysql_container mysql -h localhost -u root -prajawat- To See list of database:
show databases;- Create database command ( Make sure you are logged in with root user)
create database lks;- Change database context command ( Make sure you are logged in with root user)
use lks;- Create database command ( Make sure you are logged in with root user)
drop database lks;- To quit the database;
quit