Noel Gallagher Posted August 13, 2012 Posted August 13, 2012 Svn Revision 16559 : DB error - Column count doesn't match value count at row 1[Debug]: at account_sql.c:643 - INSERT INTO `login` (`account_id`, `userid`, `user_pass`, `sex`, `email`, `group_id`, `state`, `unban_time`, `expiration_time`, `logincount`, `lastlogin`, `last_ip`, `birthdate`, `last_mac`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)Please fixed this :/ Quote
Emistry Posted August 13, 2012 Posted August 13, 2012 perhap you are missing the favourite column ? http://rathena.org/wiki/Favorite_tab Quote
Noel Gallagher Posted August 13, 2012 Author Posted August 13, 2012 i think the favourite tab db error is when you relog then your items disappeared. Quote
Emistry Posted August 13, 2012 Posted August 13, 2012 CREATE TABLE IF NOT EXISTS `login` ( `account_id` int(11) unsigned NOT NULL auto_increment, `userid` varchar(23) NOT NULL default '', `user_pass` varchar(32) NOT NULL default '', `sex` enum('M','F','S') NOT NULL default 'M', `email` varchar(39) NOT NULL default '', `group_id` tinyint(3) NOT NULL default '0', `state` int(11) unsigned NOT NULL default '0', `unban_time` int(11) unsigned NOT NULL default '0', `expiration_time` int(11) unsigned NOT NULL default '0', `logincount` mediumint(9) unsigned NOT NULL default '0', `lastlogin` datetime NOT NULL default '0000-00-00 00:00:00', `last_ip` varchar(100) NOT NULL default '', `birthdate` DATE NOT NULL DEFAULT '0000-00-00', PRIMARY KEY (`account_id`), KEY `name` (`userid`) ) ENGINE=MyISAM AUTO_INCREMENT=2000000; i dont think we have the last_mac in the sql ..... Quote
Ind Posted August 13, 2012 Posted August 13, 2012 indeed we don't have. thats custom and therefore not rathena's fault. Quote
Noel Gallagher Posted August 13, 2012 Author Posted August 13, 2012 CREATE TABLE IF NOT EXISTS `login` ( `account_id` int(11) unsigned NOT NULL auto_increment, `userid` varchar(23) NOT NULL default '', `user_pass` varchar(32) NOT NULL default '', `sex` enum('M','F','S') NOT NULL default 'M', `email` varchar(39) NOT NULL default '', `group_id` tinyint(3) NOT NULL default '0', `state` int(11) unsigned NOT NULL default '0', `unban_time` int(11) unsigned NOT NULL default '0', `expiration_time` int(11) unsigned NOT NULL default '0', `logincount` mediumint(9) unsigned NOT NULL default '0', `lastlogin` datetime NOT NULL default '0000-00-00 00:00:00', `last_ip` varchar(100) NOT NULL default '', `birthdate` DATE NOT NULL DEFAULT '0000-00-00', PRIMARY KEY (`account_id`), KEY `name` (`userid`) ) ENGINE=MyISAM AUTO_INCREMENT=2000000; Execute this in sql database? Quote
Mystery Posted August 13, 2012 Posted August 13, 2012 Sunny, that's the default login table. Your login table has last_mac which isn't supported by rAthena. By using the clean new login table, I suggest you make any backups to your old one (just in case you have a lot of players). Quote
Noel Gallagher Posted August 13, 2012 Author Posted August 13, 2012 (edited) So, What im going to do is drop the login table and execute a new one without last_mac? Edited August 13, 2012 by Sunny Day Quote
Ind Posted August 13, 2012 Posted August 13, 2012 no. your login server is coded to try to obtain the last_mac field. Quote
Noel Gallagher Posted August 14, 2012 Author Posted August 14, 2012 (edited) How can i fix the _M/_F error? :/ bump. Edited August 14, 2012 by Sunny Day Quote
Mystery Posted August 17, 2012 Posted August 17, 2012 Try installing a clean SQL tables.. start from scratch and then add in the last_mac column. I believe that column is Harmony's. So, you can also refer to their installation guide for support. Quote
Brynner Posted June 22, 2013 Posted June 22, 2013 Svn Revision 16559 : DB error - Column count doesn't match value count at row 1[Debug]: at account_sql.c:643 - INSERT INTO `login` (`account_id`, `userid`, `user_pass`, `sex`, `email`, `group_id`, `state`, `unban_time`, `expiration_time`, `logincount`, `lastlogin`, `last_ip`, `birthdate`, `last_mac`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)Please fixed this :/the fix for this is just add ? on the (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?). it should be 14 ?. Quote
Question
Noel Gallagher
Svn Revision 16559
[Debug]: at account_sql.c:643 - INSERT INTO `login` (`account_id`, `userid`, `user_pass`, `sex`, `email`, `group_id`, `state`, `unban_time`, `expiration_time`, `logincount`, `lastlogin`, `last_ip`, `birthdate`, `last_mac`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Please fixed this :/
12 answers to this question
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.