I'm trying to make a table and mysql is giving me this error:
#1005 - Can't create table 'likes.users' (errno: 150)
That would be great to see a website that explains mysql errors like this for oracle http://ora-code.com/
CREATE TABLE IF NOT EXISTS `users` (
`user_id` int(2) NOT NULL AUTO_INCREMENT,
`username` varchar(20) NOT NULL,
`article_id` int(11) NOT NULL,
PRIMARY KEY (`user_id`),
CONSTRAINT `fk_article_id` FOREIGN KEY (`article_id`) REFERENCES `articles` (`article_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1
I can't see anything wrong with the create statement.