Reishi Mitani
Posted on September 12, 2020
First, enter your mysql docker container.
// in your local machine
$ docker exec -it up_mysql_1 /bin/bash
Dump your file.
# mysqldump -u root -p DB_NAME > outputfile.sql
The file will be dumped in your docker container.
Transport the file to your local machine using the following command.
// in your local machine
$ docker cp CONTAINER_ID:/outputfile.sql ~/Documents/outputfile.sql
๐ ๐ช ๐
๐ฉ
Reishi Mitani
Posted on September 12, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
undefined Automating MySQL Database Creation and Import in Docker: A Comprehensive Guide
September 13, 2024
undefined Physically isolating tenants with tablespaces and smart drivers in YugabyteDB
August 27, 2024