Herzlich willkommen
  • Your Language:
  • Deutsch
  • English

How to clone a Magento MySQL database

Last update on: 11 Mar 2016

On the server command line, create a database dump and import this dump into a new database.

Export:

$ mysqldump -u USERNAME -p EXISTING_DBNAME > DUMP.sql

Re-Import:

$ mysql -u USERNAME -p NEW_DBNAME < DUMP.sql
Categories: Magento