Mam tabele z auto increment na user_id:
CREATE TABLE IF NOT EXISTS `mgr_users` (
`users_id` int(11) NOT NULL AUTO_INCREMENT,
`rank_id` int(11) NOT NULL,
`users_login` text NOT NULL,
`users_password` text NOT NULL,
`users_active` int(11) NOT NULL,
`users_online` int(11) NOT NULL,
`users_zm` text NOT NULL,
PRIMARY KEY (`users_id`),
UNIQUE KEY `users_id` (`users_id`),
KEY `rank_id` (`rank_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
Chce zrobic insert:
string(256) "INSERT INTO mgr_users (`users_id`, `rank_id`, `users_login`, `users_password`, `users_active`)
VALUES ('', '1', 'root', '7e31dee49d75c','1')"
a jest blad zapytania, blad jest chyba dlatego ze usr id nie inkrementuje sie tylko dlaczego?
to jest backup z bazy a wczesniej dzialalo.