Home ›
Gotcha: drush sql-sync does not drop existing tables Gotcha: drush sql-sync does not drop existing tables
Submitted by Benjamin Melançon on July 26, 2011 - 9:36pm
Searched words:
sqlsynch fails not delete
When you run drush sql-sync @example.prod @example.dev you do not have exactly what is on your example production site. Tables that do not exist on production but do exist on your local development site will still exist.
You need to drop all tables in the database, or simply drop and re-create the database, first.
More like this
- Use Drush to sync the database from one site to another
- Select rows in a MySQL table that have no corresponding rows in another table using IS NULL
- Fastest way to check if anything is in a MySQL table
- Use Drush to sync files from one site to another
- WYSIWYG module gotcha: after upgrading or changing editors, delete profiles to resume


Comments
Post new comment