Fog Juice Posted December 10, 2009 Share Posted December 10, 2009 Hello, I keep getting the following error from this code but I can't figure out waht the problem is. Any suggestions? Error: [Err] 1005 - Can't create table 'dsds.mana_char_status_effects' (errno: 150) Code: -- -- table: `mana_char_status_effects` -- CREATE TABLE IF NOT EXISTS `mana_char_status_effects` ( `char_id` int(10) unsigned NOT NULL, `status_id` smallint(5) unsigned NOT NULL, `status_time` int(10) signed NOT NULL, -- PRIMARY KEY (`char_id`, `status_id`), FOREIGN KEY (`char_id`) REFERENCES `mana_characters` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; Quote Link to comment https://forums.phpfreaks.com/topic/184584-error-1005-but-cant-find-problem/ Share on other sites More sharing options...
rajivgonsalves Posted December 10, 2009 Share Posted December 10, 2009 that is a foriegn key problem run Show engine innodb status; to see more details right after you try to create the table Quote Link to comment https://forums.phpfreaks.com/topic/184584-error-1005-but-cant-find-problem/#findComment-974443 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.