Importing database

To import the database using the import-db command.

Heads up!

This command will only work when the project is running.

Yarn
NPM
Yarn
yarn import-db <dump file path> # for Yarn
NPM
npm run import-db <dump file path> # for NPM

When the command is called, multiple steps executed to ensure the success of the import. These steps are as follows:

  • A connection established with MySQL

  • Theme configurations will be dumped and restored after the dump is imported

  • The dump will be imported into MySQL from the specified file

  • It will be ensured that dump will work with CMA set up by setting necessary configuration values

  • And Magento setup will be running to finish the configuration.