• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Ban system = bugged!

Steel Man

New Member
Joined
Jun 2, 2012
Messages
93
Reaction score
2
Dear people,

Sometimes my server lose connection to mysql and no one can login anymore. At login, it says: "invalid account name"
after rebooting the server everything works again. But ofcourse, having this mysql problem is very annoying.

Error:

PHP:
[8:51:16.226] mysql_real_query(): SELECT `id`, `value`, `param`, `expires` FROM `bans` WHERE `type` = 1 AND `active` = 1 - MYSQL ERROR: Lost connection to MySQL server during query (2013)

Anyone could help me?
thanks!
 
Try deleting your bans table, and then add it again:

Code:
CREATE TABLE IF NOT EXISTS `bans` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` tinyint(1) NOT NULL COMMENT '1 - ip banishment, 2 - namelock, 3 - account banishment, 4 - notation, 5 - deletion',
`value` int(10) unsigned NOT NULL COMMENT 'ip address (integer), player guid or account number',
`param` int(10) unsigned NOT NULL DEFAULT '4294967295' COMMENT 'used only for ip banishment mask (integer)',
`active` tinyint(1) NOT NULL DEFAULT '1',
`expires` int(11) NOT NULL,
`added` int(10) unsigned NOT NULL,
`admin_id` int(10) unsigned NOT NULL DEFAULT '0',
`comment` text NOT NULL,
`reason` int(10) unsigned NOT NULL DEFAULT '0',
`action` int(10) unsigned NOT NULL DEFAULT '0',
`statement` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `type` (`type`,`value`),
KEY `active` (`active`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
 
It has nothing to do with the bans table afaik. Something with IP banishments is triggering that mysql error.
 
Loney: I have already done this 2 days ago but it happend ago.

Ninja: I don't have any ip-banishments nor any bans.
But it's still happening
 
Back
Top