Categories
Backend

Mysql dump docker DB one-liner solution

ONE LINER

docker exec CONTAINER_NAME /usr/bin/mysqldump -u root --password=PASSWORD DBNAME>FILE_NAME.sql

Leave a Reply

Your email address will not be published. Required fields are marked *