Skip to content

Instantly share code, notes, and snippets.

@zgulde
Last active December 14, 2016 05:15
Show Gist options
  • Select an option

  • Save zgulde/e3b1c0d6fbee2dca5ae0b3de1d25e9bd to your computer and use it in GitHub Desktop.

Select an option

Save zgulde/e3b1c0d6fbee2dca5ae0b3de1d25e9bd to your computer and use it in GitHub Desktop.

MySQL General error: 1215 Cannot add foreign key constraint

This will give you more details

echo 'show engine innodb status\G' | mysql -u homestead -p | grep -C10 -i latest

s/homestead/your username/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment