Maliken
-
Posts
6 -
Joined
-
Last visited
Posts posted by Maliken
-
-
Is it hard to point on error? Helpers....
Yes, it is not my FIRST time. i've already readed those docs and i CAN'T! find text, that can help me to solve the PROBLEM!
There is no DATE on database file, so i apply ALL updates from UPDATESAUTH Directory.
And getting errors - http://www.trinitycore.org/f/topic/10216-sql-error/
proccess already written here!
Oh wait, RBAC tables have been removed, but updates don't?
-
Someone test SQL before commiting???
What i'm doing:
Create database and execute sql file - ...sqlbaseauth_database.sql
Go to updatesauth folder, and try to execute update sql files, and what i'm getting:
2013_09_10_00_auth_misc_434.sql:
[Err] 1146 - Table 'auth.rbac_role_permissions' doesn't exist [Err] -- Add new permissions DELETE FROM `rbac_permissions` WHERE `id` BETWEEN @id AND @id+13; INSERT INTO `rbac_permissions` (`id`, `name`) VALUES (@id+0, 'modify currency'), (@id+1, 'debug phase'); -- Add permissions to "corresponding Commands Role" DELETE FROM `rbac_role_permissions` WHERE `permissionId` BETWEEN @id AND @id+13; INSERT INTO `rbac_role_permissions` (`roleId`, `permissionId`) VALUES (3, @id+0), (4, @id+1); [Msg] Finished - Unsuccessfully --------------------------------------------------
2014_05_06_00_auth_battlenet_434.sql:[Err] 1060 - Duplicate column name 'Region' [Err] ALTER TABLE `realmlist` ADD `Region` tinyint(3) UNSIGNED NOT NULL DEFAULT 2 AFTER `gamebuild`, ADD `Battlegroup` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 AFTER `Region`; -- -- Table structure for table `battlenet_account_bans` -- DROP TABLE IF EXISTS `battlenet_account_bans`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; [Err] 1050 - Table 'battlenet_account_bans' already exists [Err] CREATE TABLE `battlenet_account_bans` ( `id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Account id', `bandate` int(10) unsigned NOT NULL DEFAULT '0', `unbandate` int(10) unsigned NOT NULL DEFAULT '0', `bannedby` varchar(50) NOT NULL, `banreason` varchar(255) NOT NULL, `active` tinyint(3) unsigned NOT NULL DEFAULT '1', PRIMARY KEY (`id`,`bandate`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Ban List'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `battlenet_account_bans` -- LOCK TABLES `battlenet_account_bans` WRITE; /*!40000 ALTER TABLE `battlenet_account_bans` DISABLE KEYS */; /*!40000 ALTER TABLE `battlenet_account_bans` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `battlenet_accounts` -- DROP TABLE IF EXISTS `battlenet_accounts`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `battlenet_accounts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Identifier', `email` varchar(320) NOT NULL, `sha_pass_hash` varchar(64) NOT NULL DEFAULT '', `v` varchar(256) NOT NULL DEFAULT '', `s` varchar(64) NOT NULL DEFAULT '', `joindate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_ip` varchar(15) NOT NULL DEFAULT '127.0.0.1', `failed_logins` int(10) unsigned NOT NULL DEFAULT '0', `locked` tinyint(3) unsigned NOT NULL DEFAULT '0', `lock_country` varchar(2) NOT NULL DEFAULT '00', `last_login` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `online` tinyint(3) unsigned NOT NULL DEFAULT '0', `locale` tinyint(3) unsigned NOT NULL DEFAULT '0', `os` varchar(3) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='Account System'; /*!40101 SET character_set_client = @saved_cs_client */; -- Table structure for table `battlenet_components` -- DROP TABLE IF EXISTS `battlenet_components`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `battlenet_components` ( `Program` varchar(4) NOT NULL, `Platform` varchar(4) NOT NULL, `Build` int(11) unsigned NOT NULL, PRIMARY KEY (`Program`,`Platform`,`Build`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `battlenet_components` -- LOCK TABLES `battlenet_components` WRITE; /*!40000 ALTER TABLE `battlenet_components` DISABLE KEYS */; INSERT INTO `battlenet_components` VALUES ('Bnet','Cmp1',3), ('Bnet','Win',21719), ('Bnet','Win',26487), ('Bnet','Wn64',26487), ('Tool','Win',1569), ('Tool','Win',2736), ('WoW','base',12340), ('WoW','base',15595), ('WoW','enGB',12340), ('WoW','enGB',15595), ('WoW','enUS',12340), ('WoW','enUS',15595), ('WoW','Win',12340), ('WoW','Win',15595), ('WoW','Wn64',15595); /*!40000 ALTER TABLE `battlenet_components` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `battlenet_modules` -- DROP TABLE IF EXISTS `battlenet_modules`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `battlenet_modules` ( `Hash` varchar(64) NOT NULL, `Name` varchar(64) NOT NULL DEFAULT '', `Type` varchar(8) NOT NULL, `System` varchar(8) NOT NULL, `Data` text, PRIMARY KEY (`Hash`), UNIQUE KEY `uk_name_type_system` (`Name`,`Type`,`System`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `battlenet_modules` -- LOCK TABLES `battlenet_modules` WRITE; /*!40000 ALTER TABLE `battlenet_modules` DISABLE KEYS */; INSERT INTO `battlenet_modules` VALUES ('19c91b68752b7826df498bf73aca1103c86962a9a55a0a7033e5ad895f4d927c','Password','auth','Mc64',NULL), ('1af5418a448f8ad05451e3f7dbb2d9af9cb13458eea2368ebfc539476b954f1c','RiskFingerprint','auth','Mc64',NULL), ('207640724f4531d3b2a21532224d1486e8c4d2d805170381cbc3093264157960','SelectGameAccount','auth','Mac',NULL), ('2e6d53adab37a41542b38e01f62cd365eab8805ed0de73c307cc6d9d1dfe478c','Password [Msg] Finished - Unsuccessfully --------------------------------------------------
2014_06_01_00_auth_battlenet_434.sql:[Err] 1060 - Duplicate column name 'battlenet_index' [Err] ALTER TABLE `account` ADD `battlenet_index` tinyint(3) unsigned DEFAULT NULL AFTER `battlenet_account`, ADD UNIQUE KEY `uk_bnet_acc` (`battlenet_account`, `battlenet_index`); [Msg] Finished - Unsuccessfully --------------------------------------------------
2014_06_23_00_auth_action_ip_logger.sql:
[Err] 1060 - Duplicate column name 'last_attempt_ip' [Err] ALTER TABLE `account` ADD COLUMN `last_attempt_ip` VARCHAR(15) NOT NULL DEFAULT '127.0.0.1' AFTER `last_ip`; [Err] 1050 - Table 'logs_ip_actions' already exists [Err] CREATE TABLE `logs_ip_actions` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Unique Identifier', `account_id` INT(10) UNSIGNED NOT NULL COMMENT 'Account ID', `character_guid` INT(10) UNSIGNED NOT NULL COMMENT 'Character Guid', `type` TINYINT(3) UNSIGNED NOT NULL, `ip` VARCHAR(15) NOT NULL DEFAULT '127.0.0.1', `systemnote` TEXT NULL COMMENT 'Notes inserted by system', `unixtime` INT(10) UNSIGNED NOT NULL COMMENT 'Unixtime', `time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Timestamp', `comment` TEXT NULL COMMENT 'Allows users to add a comment', PRIMARY KEY (`id`) ) COMMENT='Used to log ips of individual actions' COLLATE='utf8_general_ci' ENGINE=InnoDB; [Msg] Finished - Unsuccessfully --------------------------------------------------
"unknown column" "missing table" "duplicate column" error / sql problems / SQLDriverLogFile < answer on 1st post of 1st page
in Help and Support
Posted
So they are already updated? Thank you very much.