Skip to content

Instantly share code, notes, and snippets.

@228vit
Created October 23, 2012 11:47
Show Gist options
  • Save 228vit/3938347 to your computer and use it in GitHub Desktop.
Save 228vit/3938347 to your computer and use it in GitHub Desktop.
Drop MYSQL index before delete any ref_id field
SET FOREIGN_KEY_CHECKS = 0; ALTER TABLE `table` DROP INDEX `index_idx` ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment