MySQL: Detailed Error Message for errno. 150
A quick note for errors due to failure on Foreign Key constraint in MySQL that spit out a common error:
Can't create table 'table_name'' (errno: 150)
There can be multiple reasons behind this error including type mismatch between the parent and child columns to this
You have defined a SET NULL condition though some of the columns are defined as NOT NULL.
The detailed message however is not shown. To access the last such error message do this
mysql> show innodb status;
and look for LATEST FOREIGN KEY ERROR.
0.000000
0.000000
Categories: SQL, Tech
Tags: detailed message, errno 150, foreign key, mysql
Leave a comment Cancel reply
Recent Comments
Archives
- March 2011 (1)
- February 2011 (1)
- June 2010 (1)
- March 2010 (4)
- February 2010 (7)
- January 2010 (9)
- December 2009 (1)
Tag Cloud
argument Authorization batch file build C++ Calling overriden method cap'n not to fret capital letters cd change directory change drive chdir conversion count database detailed message errno 150 ERROR 1064 (42000) escape @ character everything's is shiny exe Firefox foreign key foreign keys forgot password Google Google App Engine google wave hacked Haskell header HTTP 401 Unauthorized http_proxy Hugs IETF install isLower isUpper Java kill Linux logging function Matching Multiple Lines matrix most searched Mozilla mysql MySQLdb nsAString PostgreSQL printf process Python regex reserved keywords reset root password RFC scipy shell script starting command std::wstring superclass constructor undefined unicode upper case ValueError: setting an array element with a sequence variable number of arguments vprintf web aplication Windows WinHugs wrapper wstring WWW-Authentication XPCOM
Join 3 other subscribers
Good fill someone in on and this mail helped me alot in my college assignement. Gratefulness you for your information.