Last active
December 22, 2015 07:29
-
-
Save ccamara/6438638 to your computer and use it in GitHub Desktop.
How to import and export a #sql file into a database using #drush #drupal #database #sql-cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Export database. | |
drush sql-dump > ~/my-sql-dump-file-name.sql | |
# Import database. | |
drush sql-cli < backup.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More information here: http://nathan.rambeck.org/blog/7-using-drush-load-database-file and here http://www.tylerfrankenstein.com/code/use-drush-export-import-drupal-mysql-database-dump-file