Jump to content

Error 1005, but can't find problem.


Fog Juice

Recommended Posts

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;

Link to comment
https://forums.phpfreaks.com/topic/184584-error-1005-but-cant-find-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.