Docker – load and dump database…

Leave a comment

April 28, 2021 by aubreykloppers

Dump and load databases into docker running MariaDB:

docker exec -i mysql mysqldump -uroot -pPASSWORD --all-databases > all_databases.sql
docker exec -i mysql mysql -uroot -pPASSWORD < all_databases.sql

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

counter for wordpress
%d bloggers like this: