This is my Create table script:
DROP TABLE IF EXISTS `wp_beats`;
CREATE TABLE .`wp_beats` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`name` varchar(512) NOT NULL,
`filename` varchar(512) NOT NULL,
`extension` varchar(4) NOT NULL,
`upload_date_time` datetime NOT NULL,
`genre_ID` int(11) NOT NULL,
`duration` varchar(14) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
This is my Insert Statement:
INSERT INTO `wp_beats` (name, user_id, filename, extension, duration, upload_date_time) VALUES ("Anthony test beat", "1", "4eaab724745ee", ".mp3", " 00:04:13.88", "2011-10-28 14:08:07")
And I get this error in mysql browser:
Failed to read auto-increment value from storage engine
Do you find any fault in any of the statement?
EDIT:
I dropped the table and created a new one with the above script and now it’s working. This is really funny. God knows what will happen when this happens in production environment!
two options:
either http://bugs.mysql.com/bug.php?id=36411 or you already out of int(11)