MySQL Error Debugging Assistance

mysql

Got to remember this little MySQL snippet:

SHOW ENGINE INNODB STATUS

Many times, I’ll get an obscure MySQL error “General error: 1215 Cannot add foreign key constraint”. The above snippet, when run on the same database, gives a block of text which includes the section “LATEST FOREIGN KEY ERROR” – a MUCH more detailed and informative error message!

June 28th, 2016

Tags: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *