Noel Gallagher Posted August 13, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 150 Reputation: 2 Joined: 11/19/11 Last Seen: October 29, 2016 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted August 13, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 2 hours ago Share Posted August 13, 2012 perhap you are missing the favourite column ? http://rathena.org/wiki/Favorite_tab Quote Link to comment Share on other sites More sharing options...
Noel Gallagher Posted August 13, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 150 Reputation: 2 Joined: 11/19/11 Last Seen: October 29, 2016 Author Share Posted August 13, 2012 i think the favourite tab db error is when you relog then your items disappeared. Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 13, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 2 hours ago Share 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 Link to comment Share on other sites More sharing options...
Ind Posted August 13, 2012 Group: Members Topic Count: 169 Topics Per Day: 0.03 Content Count: 1260 Reputation: 750 Joined: 11/19/11 Last Seen: April 11, 2013 Share Posted August 13, 2012 indeed we don't have. thats custom and therefore not rathena's fault. Quote Link to comment Share on other sites More sharing options...
Noel Gallagher Posted August 13, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 150 Reputation: 2 Joined: 11/19/11 Last Seen: October 29, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
Mystery Posted August 13, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share 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 Link to comment Share on other sites More sharing options...
Noel Gallagher Posted August 13, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 150 Reputation: 2 Joined: 11/19/11 Last Seen: October 29, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
Ind Posted August 13, 2012 Group: Members Topic Count: 169 Topics Per Day: 0.03 Content Count: 1260 Reputation: 750 Joined: 11/19/11 Last Seen: April 11, 2013 Share Posted August 13, 2012 no. your login server is coded to try to obtain the last_mac field. Quote Link to comment Share on other sites More sharing options...
Noel Gallagher Posted August 14, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 150 Reputation: 2 Joined: 11/19/11 Last Seen: October 29, 2016 Author Share Posted August 14, 2012 (edited) How can i fix the _M/_F error? :/ bump. Edited August 14, 2012 by Sunny Day Quote Link to comment Share on other sites More sharing options...
Noel Gallagher Posted August 15, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 150 Reputation: 2 Joined: 11/19/11 Last Seen: October 29, 2016 Author Share Posted August 15, 2012 BUMP! Quote Link to comment Share on other sites More sharing options...
Mystery Posted August 17, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share 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 Link to comment Share on other sites More sharing options...
Brynner Posted June 22, 2013 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 1959 Reputation: 202 Joined: 01/08/12 Last Seen: 2 hours ago Share 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 Link to comment Share on other sites More sharing options...
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 :/
Link to comment
Share on other sites
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.