You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we want to export the database dump file, we first need to look for the name of the docker volumn that's running mariadb, then we run: docker exec <mariadb_volumn_name> mysqldump magento --single-transaction --no-tablespaces -u magento -pmagento --result-file=/tmp/dump.sql
then we need to copy the dump file from the docker to our project root. docker cp <mariadb_volumn_name>:/tmp/dump.sql ./dump.sql
Describe the solution you'd like
add an extra command to automate dumping and copying the file to the root of the project while still being able to pass arguments to mysqldump.
for example:
npm run export-db -- --file-name="april-6.sql" --single-transaction --no-tablespaces
Describe alternatives you've considered
creating a shell script for each project, which is not really the best idea :)
Additional context
The text was updated successfully, but these errors were encountered:
Is your proposal related to a problem?
When we want to export the database dump file, we first need to look for the name of the docker volumn that's running mariadb, then we run:
docker exec <mariadb_volumn_name> mysqldump magento --single-transaction --no-tablespaces -u magento -pmagento --result-file=/tmp/dump.sql
then we need to copy the dump file from the docker to our project root.
docker cp <mariadb_volumn_name>:/tmp/dump.sql ./dump.sql
Describe the solution you'd like
add an extra command to automate dumping and copying the file to the root of the project while still being able to pass arguments to mysqldump.
for example:
npm run export-db -- --file-name="april-6.sql" --single-transaction --no-tablespaces
Describe alternatives you've considered
creating a shell script for each project, which is not really the best idea :)
Additional context
The text was updated successfully, but these errors were encountered: