ERROR 1005 (HY000): Can't create table './database_name/table_name.frm' (errno: 150)

CREATE TABLE 時に、外部制約の部分でエラーになりました。
出力されたエラーは以下のとおり。

ERROR 1005 (HY000): Can't create table './database_name/table_name.frm' (errno: 150)


調べてたら以下のような情報が、
http://dev.mysql.com/doc/refman/4.1/ja/innodb-foreign-key-constraints.html
http://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?topic=27130&forum=26&7
http://www.hostgeekz.com/docs/mysql/japanese/manual.ja_Table_types.html


んで結局原因は、参照先と異なる型(正解はint、設定はsmallint ..)を設定してたからでした。。
鬱だ氏のう。