Jump to content
TrinityCore

"unknown column" "missing table" "duplicate column" error / sql problems / SQLDriverLogFile < answer on 1st post of 1st page


Apple
 Share

Recommended Posts

I am just too lazy to find out where the DB structure is located in C++ core.

 

That's probably not something you want to admit when you're asking for help...

 

Anyway, the problem isn't with the core. You missed an SQL file somewhere along the way so the core is looking for a field that you don't have in your DB.

Link to comment
Share on other sites

server.log

 

In mysql_stmt_prepare() id: 56, sql: "SELECT difficulty_entry_1, difficulty_entry_2, difficulty_entry_3, KillCredit1, KillCredit2, modelid1, modelid2, modelid3, modelid4, name, subname, IconName, gossip_menu_id, minlevel, maxlevel, exp, faction_A, faction_H, npcflag, speed_walk, speed_run, scale, rank, mindmg, maxdmg, dmgschool, attackpower, dmg_multiplier, baseattacktime, rangeattacktime, unit_class, unit_flags, unit_flags2, dynamicflags, family, trainer_type, trainer_spell, trainer_class, trainer_race, minrangedmg, maxrangedmg, rangedattackpower, type, type_flags, lootid, pickpocketloot, skinloot, resistance1, resistance2, resistance3, resistance4, resistance5, resistance6, spell1, spell2, spell3, spell4, spell5, spell6, spell7, spell8, PetSpellDataId, VehicleId, mingold, maxgold, AIName, MovementType, InhabitType, HoverHeight, Health_mod, Mana_mod, Armor_mod, RacialLeader, questItem1, questItem2, questItem3, questItem4, questItem5, questItem6, movementId, RegenHealth, mechanic_immune_mask, flags_extra, ScriptName FROM creature_template WHERE entry = ?"
Unknown column 'trainer_spell' in 'field list'
DatabasePool world 4.3.4 NOT opened. There were errors opening the MySQL connections. Check your SQLDriverLogFile for specific errors.

 

used : TDB_full_434.04_2013_02_14.7z + updates => https://github.com/TrinityCore/TrinityCore_4.3.4_DB_Alpha updates 04

 

sorry im speak in french

Link to comment
Share on other sites

I have compiled the latest trinitycore from here https://github.com/TrinityCore/TrinityCore , and I have imported these world mysql database : http://trinitycore.org/f/files/download/5-tdb-full-updates/   when I will start the server I get the error .....

 

"Unkown column 'trainer_spell' in 'field list'"

 

 

But when I import "TDB_full_335.51_2013_02_14.sql" I get this error :

 

 

 3). Extracted file might be from wrong client version or a database-update has been forgotten.
/home/trinity/server/datadir/dbc/OverrideSpellData.dbc exists, and has 13 field(s) (expected 12). Extracted file might be from wrong client version or a database-update has been forgotten.
/home/trinity/server/datadir/dbc/QuestSort.dbc exists, and has 2 field(s) (expected 18). Extracted file might be from wrong client version or a database-update has been forgotten.
/home/trinity/server/datadir/dbc/ScalingStatDistribution.dbc exists, and has 23 field(s) (expected 22). Extracted file might be from wrong client version or a database-update has been forgotten.
/home/trinity/server/datadir/dbc/ScalingStatValues.dbc exists, and has 47 field(s) (expected 24). Extracted file might be from wrong client version or a database-update has been forgotten.
/home/trinity/server/datadir/dbc/SkillLine.dbc exists, and has 7 field(s) (expected 56). Extracted file might be from wrong client version or a database-update has been forgotten.
 
 
...... etc
 



 

Edited by marco412
Link to comment
Share on other sites

I applied all the TDB update that applied and the DB that I imported is only about a month old.  the columns that appear in the code list are columns that the core are looking for and not finding in the database.  Again the columns that are listed in the post do not appear in the db tables.

Edited by firedraken
Link to comment
Share on other sites

Again the columns that are listed in the post do not appear in the db tables.

 

You missed an SQL update (or several), `curhappiness` is a field in `character_pet` and would be in the DB with a proper installation and updates.

 

Also, you seem to have a broken config or MySQL setup:

 

  • DatabasePool characters-trinity NOT opened. There were errors opening the MySQL connections. Check your SQLDriverLogFile for specific errors.
  • Cannot connect to Character database 127.0.0.1;3306;root;1924;characters-trinity
Link to comment
Share on other sites

I solved the problem with the database TDB_full_335.51_2013_02_14.sql, this is the game client version 3.3.5a but when I import the database
"TDB_full_434.04_2013_02_14.sql"  I get the error:
Unknown column 'trainer_spell' in 'field list'
etc ...
 
But when I solve the error with the Database "TDB_full_434 ..."  the server has the version 4.3.4 right?
 
Sorry for my bad English
Link to comment
Share on other sites

What on earth are you doing?

From your original post, you grabbed the source from master (3.3.5a).

All you need t do is load TDB_Full_3.3.5a, then apply the updates.

TDB_Full_434 is for another version, and from what it looks like, you are extracting from a wrong client version.

 

So the question now is: what version are you trying to load?

You started to follow the instructions correctly, until you got to updates, than you loaded 434 on top of that. Than you started to extract on a wrong client version, probably with the wrong.

What a fucking mess!

 

First, Figure out what version you want to experiment with. 335a or 443.

  • Upvote 1
Link to comment
Share on other sites

Please don't take this offensively, but I don't think you know what you are doing. You need the exact game client of 4.3.4 to extract the vmaps.maps,etc.. You get those tools after you finished compiling from the source you get here., there is a doc to install and update the DB to 434 (Looks like you already accomplished that)

There is really nothing else more informative I can give you.

 

The database and the core are alpha, early development, and are only meant to be used for development purposes.
 

Link to comment
Share on other sites

  • 2 weeks later...

Hello, I'm pretty new at this, before trying to compile a trinity server I've only downloaded some pre-made servers, so I need a little help.
I've been following two guides, 1 newb friendly but with a lack of information in my opinion and one which game me the additional information needed, but a problem has come up though!

Links: http://collab.kpsn.org/display/tc/How-to_Win#How-to_Win-SoftwareRequired - http://www.ac-web.org/forums/showthread.php?111111-How-to-compile-a-fresh-Trinity-Core
When I try to open authserver.exe it quickly writes something and then shuts down, and since I'm a newb then I don't know what's wrong :@
These are the errors I get:

 

TrinityCore rev. 294fac60a03a 2013-04-02 01:06:19 +0200 (master branch) (Win32, Release) (authserver)

<Ctrl-C> to stop.
 
Using configuration file authserver.conf.
OpenSSL 1.0.1e 11 Feb 2013 (Library: OpenSSL 1.0.1e 11 Feb 2013)
Opening DatabasePool 'auth'. Asynchronous connections: 1, synchronous connections: 1.
MySQL client library: 5.5.9
MySQL server ver: 5.6.10-log 
Connected to MySQL database at 127.0.0.1
In mysql_stmt_prepare() id: 1, sql: "DELETE FROM ip_banned WHERE unbandate<>bandate AND unbandate<=UNIX_TIMESTAMP()"
Table 'auth.ip_banned' doesn't exist
In mysql_stmt_prepare() id: 2, sql: "UPDATE account_banned SET active = 0 WHERE active = 1 AND unbandate<>bandate AND unbandate<=UNIX_TIMESTAMP()"
Table 'auth.account_banned' doesn't exist
In mysql_stmt_prepare() id: 4, sql: "INSERT INTO ip_banned (ip, bandate, unbandate, bannedby, banreason) VALUES (?, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()+?, 'Trinity realmd', 'Failed login autoban')"
Table 'auth.ip_banned' doesn't exist
In mysql_stmt_prepare() id: 8, sql: "INSERT INTO account_banned VALUES (?, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()+?, 'Trinity realmd', 'Failed login autoban', 1)"
Table 'auth.account_banned' doesn't exist
In mysql_stmt_prepare() id: 9, sql: "DELETE FROM account_banned WHERE id = ?"
Table 'auth.account_banned' doesn't exist
In mysql_stmt_prepare() id: 11, sql: "UPDATE account SET v = ?, s = ? WHERE username = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 12, sql: "UPDATE account SET sessionkey = ?, last_ip = ?, last_login = NOW(), locale = ?, failed_logins = 0, os = ? WHERE username = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 14, sql: "UPDATE account SET failed_logins = failed_logins + 1 WHERE username = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 22, sql: "INSERT INTO ip_banned (ip, bandate, unbandate, bannedby, banreason) VALUES (?, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()+?, ?, ?)"
Table 'auth.ip_banned' doesn't exist
In mysql_stmt_prepare() id: 23, sql: "DELETE FROM ip_banned WHERE ip = ?"
Table 'auth.ip_banned' doesn't exist
In mysql_stmt_prepare() id: 27, sql: "INSERT INTO account_banned VALUES (?, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()+?, ?, ?, 1)"
Table 'auth.account_banned' doesn't exist
In mysql_stmt_prepare() id: 28, sql: "UPDATE account_banned SET active = 0 WHERE id = ? AND active != 0"
Table 'auth.account_banned' doesn't exist
In mysql_stmt_prepare() id: 29, sql: "DELETE FROM realmcharacters WHERE acctid = ? AND realmid = ?"
Table 'auth.realmcharacters' doesn't exist
In mysql_stmt_prepare() id: 30, sql: "DELETE FROM realmcharacters WHERE acctid = ?"
Table 'auth.realmcharacters' doesn't exist
In mysql_stmt_prepare() id: 31, sql: "INSERT INTO realmcharacters (numchars, acctid, realmid) VALUES (?, ?, ?)"
Table 'auth.realmcharacters' doesn't exist
In mysql_stmt_prepare() id: 32, sql: "SELECT SUM(numchars) FROM realmcharacters WHERE acctid = ?"
Table 'auth.realmcharacters' doesn't exist
In mysql_stmt_prepare() id: 34, sql: "INSERT INTO realmcharacters (realmid, acctid, numchars) SELECT realmlist.id, account.id, 0 FROM realmlist, account LEFT JOIN realmcharacters ON acctid=account.id WHERE acctid IS NULL"
Table 'auth.realmcharacters' doesn't exist
In mysql_stmt_prepare() id: 35, sql: "UPDATE account SET expansion = ? WHERE id = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 36, sql: "UPDATE account SET locked = ? WHERE id = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 37, sql: "INSERT INTO logs (time, realm, type, level, string) VALUES (?, ?, ?, ?, ?)"
Table 'auth.logs' doesn't exist
In mysql_stmt_prepare() id: 38, sql: "UPDATE account SET v = 0, s = 0, username = ?, sha_pass_hash = ? WHERE id = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 39, sql: "UPDATE account SET v = 0, s = 0, sha_pass_hash = ? WHERE id = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 40, sql: "UPDATE account SET mutetime = ? , mutereason = ? , muteby = ? WHERE id = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 41, sql: "UPDATE account SET mutetime = ? WHERE id = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 42, sql: "UPDATE account SET last_ip = ? WHERE username = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 43, sql: "UPDATE account SET online = 1 WHERE id = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 44, sql: "UPDATE uptime SET uptime = ?, maxplayers = ? WHERE realmid = ? AND starttime = ?"
Table 'auth.uptime' doesn't exist
In mysql_stmt_prepare() id: 45, sql: "DELETE FROM logs WHERE (time + ?) < ?"
Table 'auth.logs' doesn't exist
In mysql_stmt_prepare() id: 46, sql: "DELETE FROM account_access WHERE id = ?"
Table 'auth.account_access' doesn't exist
In mysql_stmt_prepare() id: 47, sql: "DELETE FROM account_access WHERE id = ? AND (RealmID = ? OR RealmID = -1)"
Table 'auth.account_access' doesn't exist
In mysql_stmt_prepare() id: 48, sql: "INSERT INTO account_access (id,gmlevel,RealmID) VALUES (?, ?, ?)"
Table 'auth.account_access' doesn't exist
In mysql_stmt_prepare() id: 65, sql: "DELETE FROM account WHERE id = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 68, sql: "INSERT INTO rbac_account_groups (accountId, groupId, realmId) VALUES (?, ?, ?)"
Table 'auth.rbac_account_groups' doesn't exist
In mysql_stmt_prepare() id: 69, sql: "DELETE FROM rbac_account_groups WHERE accountId = ? AND groupId = ? AND (realmId = ? OR realmId = -1)"
Table 'auth.rbac_account_groups' doesn't exist
In mysql_stmt_prepare() id: 71, sql: "INSERT INTO rbac_account_roles (accountId, roleId, granted, realmId) VALUES (?, ?, ?, ?) ON DUPLICATE KEY UPDATE granted = VALUES(granted)"
Table 'auth.rbac_account_roles' doesn't exist
In mysql_stmt_prepare() id: 72, sql: "DELETE FROM rbac_account_roles WHERE accountId = ? AND roleId = ? AND (realmId = ? OR realmId = -1)"
Table 'auth.rbac_account_roles' doesn't exist
In mysql_stmt_prepare() id: 74, sql: "INSERT INTO rbac_account_permissions (accountId, permissionId, granted, realmId) VALUES (?, ?, ?, ?) ON DUPLICATE KEY UPDATE granted = VALUES(granted)"
Table 'auth.rbac_account_permissions' doesn't exist
In mysql_stmt_prepare() id: 75, sql: "DELETE FROM rbac_account_permissions WHERE accountId = ? AND permissionId = ? AND (realmId = ? OR realmId = -1)"
Table 'auth.rbac_account_permissions' doesn't exist
MySQL client library: 5.5.9
MySQL server ver: 5.6.10-log 
Connected to MySQL database at 127.0.0.1
In mysql_stmt_prepare() id: 0, sql: "SELECT id, name, address, localAddress, localSubnetMask, port, icon, flag, timezone, allowedSecurityLevel, population, gamebuild FROM realmlist WHERE flag <> 3 ORDER BY name"
Table 'auth.realmlist' doesn't exist
In mysql_stmt_prepare() id: 3, sql: "SELECT * FROM ip_banned WHERE ip = ?"
Table 'auth.ip_banned' doesn't exist
In mysql_stmt_prepare() id: 24, sql: "SELECT ip, bandate, unbandate, bannedby, banreason FROM ip_banned WHERE (bandate = unbandate OR unbandate > UNIX_TIMESTAMP()) ORDER BY unbandate"
Table 'auth.ip_banned' doesn't exist
In mysql_stmt_prepare() id: 25, sql: "SELECT ip, bandate, unbandate, bannedby, banreason FROM ip_banned WHERE (bandate = unbandate OR unbandate > UNIX_TIMESTAMP()) AND ip LIKE CONCAT('%%', ?, '%%') ORDER BY unbandate"
Table 'auth.ip_banned' doesn't exist
In mysql_stmt_prepare() id: 5, sql: "SELECT bandate, unbandate FROM account_banned WHERE id = ? AND active = 1"
Table 'auth.account_banned' doesn't exist
In mysql_stmt_prepare() id: 6, sql: "SELECT account.id, username FROM account, account_banned WHERE account.id = account_banned.id AND active = 1 GROUP BY account.id"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 7, sql: "SELECT account.id, username FROM account, account_banned WHERE account.id = account_banned.id AND active = 1 AND username LIKE CONCAT('%%', ?, '%%') GROUP BY account.id"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 10, sql: "SELECT a.sessionkey, a.id, aa.gmlevel  FROM account a LEFT JOIN account_access aa ON (a.id = aa.id) WHERE username = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 13, sql: "SELECT a.sha_pass_hash, a.id, a.locked, a.last_ip, aa.gmlevel, a.v, a.s FROM account a LEFT JOIN account_access aa ON (a.id = aa.id) WHERE a.username = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 15, sql: "SELECT id, failed_logins FROM account WHERE username = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 16, sql: "SELECT id FROM account WHERE username = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 17, sql: "SELECT id, username FROM account WHERE username = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 18, sql: "SELECT id, sessionkey, last_ip, locked, expansion, mutetime, locale, recruiter, os FROM account WHERE username = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 19, sql: "SELECT id, username FROM account WHERE email = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 20, sql: "SELECT numchars FROM realmcharacters WHERE realmid = ? AND acctid= ?"
Table 'auth.realmcharacters' doesn't exist
In mysql_stmt_prepare() id: 21, sql: "SELECT id, username FROM account WHERE last_ip = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 26, sql: "SELECT 1 FROM account WHERE id = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 33, sql: "INSERT INTO account(username, sha_pass_hash, joindate) VALUES(?, ?, NOW())"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 49, sql: "SELECT id FROM account WHERE username = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 50, sql: "SELECT gmlevel FROM account_access WHERE id = ?"
Table 'auth.account_access' doesn't exist
In mysql_stmt_prepare() id: 51, sql: "SELECT gmlevel FROM account_access WHERE id = ? AND (RealmID = ? OR RealmID = -1)"
Table 'auth.account_access' doesn't exist
In mysql_stmt_prepare() id: 52, sql: "SELECT username FROM account WHERE id = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 53, sql: "SELECT 1 FROM account WHERE id = ? AND sha_pass_hash = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 54, sql: "SELECT 1 FROM account WHERE username = ? AND sha_pass_hash = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 55, sql: "SELECT a.username, aa.gmlevel, a.email, a.last_ip, DATE_FORMAT(a.last_login, '%Y-%m-%d %T'), a.mutetime, a.mutereason, a.muteby FROM account a LEFT JOIN account_access aa ON (a.id = aa.id AND (aa.RealmID = ? OR aa.RealmID = -1)) WHERE a.id = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 56, sql: "SELECT unbandate, bandate = unbandate, bannedby, banreason FROM account_banned WHERE id = ? AND active ORDER BY bandate ASC LIMIT 1"
Table 'auth.account_banned' doesn't exist
In mysql_stmt_prepare() id: 57, sql: "SELECT a.username, aa.gmlevel FROM account a, account_access aa WHERE a.id=aa.id AND aa.gmlevel >= ? AND (aa.realmid = -1 OR aa.realmid = ?)"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 58, sql: "SELECT a.username, a.last_ip, aa.gmlevel, a.expansion FROM account a LEFT JOIN account_access aa ON (a.id = aa.id) WHERE a.id = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 59, sql: "SELECT 1 FROM account_access WHERE id = ? AND gmlevel > ?"
Table 'auth.account_access' doesn't exist
In mysql_stmt_prepare() id: 60, sql: "SELECT a.id, aa.gmlevel, aa.RealmID FROM account a LEFT JOIN account_access aa ON (a.id = aa.id) WHERE a.username = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 61, sql: "SELECT 1 FROM account WHERE recruiter = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 62, sql: "SELECT 1 FROM account_banned WHERE id = ? AND active = 1 UNION SELECT 1 FROM ip_banned WHERE ip = ?"
Table 'auth.account_banned' doesn't exist
In mysql_stmt_prepare() id: 63, sql: "SELECT username, email, last_ip FROM account WHERE id = ?"
Table 'auth.account' doesn't exist
In mysql_stmt_prepare() id: 64, sql: "SELECT allowedSecurityLevel from realmlist WHERE id = ?"
Table 'auth.realmlist' doesn't exist
In mysql_stmt_prepare() id: 66, sql: "SELECT gmlevel, RealmID FROM account_access WHERE id = ? and (RealmID = ? OR RealmID = -1) ORDER BY gmlevel desc"
Table 'auth.account_access' doesn't exist
In mysql_stmt_prepare() id: 67, sql: "SELECT groupId FROM rbac_account_groups WHERE accountId = ? AND (realmId = ? OR realmId = -1) GROUP BY groupId"
Table 'auth.rbac_account_groups' doesn't exist
In mysql_stmt_prepare() id: 70, sql: "SELECT roleId, granted FROM rbac_account_roles WHERE accountId = ? AND (realmId = ? OR realmId = -1) ORDER BY roleId, realmId"
Table 'auth.rbac_account_roles' doesn't exist
In mysql_stmt_prepare() id: 73, sql: "SELECT permissionId, granted FROM rbac_account_permissions WHERE accountId = ? AND (realmId = ? OR realmId = -1) ORDER BY permissionId, realmId"
Table 'auth.rbac_account_permissions' doesn't exist
DatabasePool auth NOT opened. There were errors opening the MySQL connections. Check your SQLDriverLogFile for specific errors.
Cannot connect to database

 

 

Using configuration file worldserver.conf.
Using SSL version: OpenSSL 1.0.1e 11 Feb 2013 (library: OpenSSL 1.0.1e 11 Feb 2013)
Using ACE version: 6.1.4
TrinityCore rev. 294fac60a03a 2013-04-02 01:06:19 +0200 (master branch) (Win32, Release) (worldserver-daemon)
<Ctrl-C> to stop.
 
 ______                       __
/__  _       __          __/ __
/_/ / _ __ /_    ___ /_ , _  __  __
    /`'__/ /' _ `/ / / /
    / / / _ _
      _ _   _ _ _ _ __/`____
      /_//_/   /_//_//_//_//__/ `/___/>
                                 C O R E  /___/
http://TrinityCore.org                    /__/
 
In mysql_stmt_prepare() id: 56, sql: "SELECT difficulty_entry_1, difficulty_entry_2, difficulty_entry_3, KillCredit1, KillCredit2, modelid1, modelid2, modelid3, modelid4, name, subname, IconName, gossip_menu_id, minlevel, maxlevel, exp, faction_A, faction_H, npcflag, speed_walk, speed_run, scale, rank, mindmg, maxdmg, dmgschool, attackpower, dmg_multiplier, baseattacktime, rangeattacktime, unit_class, unit_flags, unit_flags2, dynamicflags, family, trainer_type, trainer_spell, trainer_class, trainer_race, minrangedmg, maxrangedmg, rangedattackpower, type, type_flags, lootid, pickpocketloot, skinloot, resistance1, resistance2, resistance3, resistance4, resistance5, resistance6, spell1, spell2, spell3, spell4, spell5, spell6, spell7, spell8, PetSpellDataId, VehicleId, mingold, maxgold, AIName, MovementType, InhabitType, HoverHeight, Health_mod, Mana_mod, Armor_mod, RacialLeader, questItem1, questItem2, questItem3, questItem4, questItem5, questItem6, movementId, RegenHealth, mechanic_immune_mask, flags_extra, ScriptName FROM creature_template WHERE entry = ?"
Unknown column 'unit_flags2' in 'field list'
In mysql_stmt_prepare() id: 58, sql: "SELECT c.country FROM ip2nationCountries c, ip2nation i WHERE i.ip < ? AND c.code = i.country ORDER BY i.ip DESC LIMIT 0,1"
Table 'world.ip2nationcountries' doesn't exist
DatabasePool world NOT opened. There were errors opening the MySQL connections. Check your SQLDriverLogFile for specific errors.
Cannot connect to world database 127.0.0.1;3306;root;password;world

 

In the last line of second spoiler, I did enter the correct root;password, I just eddited it 'cause I use that password elsewhere aswell =)

So, if anyone can help me, then I'd appreciate it a lot :)

- Oh also, I've been looking for others who has had same problem, but haven't been able to find one that solves mine.

 

Camilla

 

- Got no idea why my second spoiler won't work -.-

Edited by Camilla
Link to comment
Share on other sites

After starting the WorldServer I'm getting this error message .. Sorry for the long post

I wanted to make sure I got the entire message

 

Database is 3.3.5a taken from trinitycore

Windows Vista

Dbc files taken from the World of Warcraft Wrath of the Lich King

 

Thanks in advance!

 

 

Initialize data stores...
Some required *.dbc files (28 from 96) not found or not compatible:
./dbc/Achievement_Criteria.dbc exists, and has 28 field(s) (expected 31). Extrac
ted file might be from wrong client version or a database-update has been forgot
ten.
./dbc/AreaPOI.dbc exists, and has 46 field(s) (expected 54). Extracted file migh
t be from wrong client version or a database-update has been forgotten.
./dbc/BattlemasterList.dbc exists, and has 33 field(s) (expected 32). Extracted
file might be from wrong client version or a database-update has been forgotten.

./dbc/CreatureModelData.dbc exists, and has 26 field(s) (expected 28). Extracted
 file might be from wrong client version or a database-update has been forgotten
.
./dbc/DestructibleModelData.dbc
./dbc/DungeonEncounter.dbc
./dbc/Faction.dbc exists, and has 53 field(s) (expected 57). Extracted file migh
t be from wrong client version or a database-update has been forgotten.
./dbc/gtOCTClassCombatRatingScalar.dbc
./dbc/Holidays.dbc exists, and has 54 field(s) (expected 55). Extracted file mig
ht be from wrong client version or a database-update has been forgotten.
./dbc/Item.dbc exists, and has 4 field(s) (expected 8). Extracted file might be
from wrong client version or a database-update has been forgotten.
./dbc/ItemExtendedCost.dbc exists, and has 15 field(s) (expected 16). Extracted
file might be from wrong client version or a database-update has been forgotten.

./dbc/LFGDungeons.dbc exists, and has 24 field(s) (expected 49). Extracted file
might be from wrong client version or a database-update has been forgotten.
./dbc/LiquidType.dbc exists, and has 46 field(s) (expected 45). Extracted file m
ight be from wrong client version or a database-update has been forgotten.
./dbc/Map.dbc exists, and has 126 field(s) (expected 66). Extracted file might b
e from wrong client version or a database-update has been forgotten.
./dbc/MapDifficulty.dbc
./dbc/OverrideSpellData.dbc
./dbc/PvpDifficulty.dbc
./dbc/QuestXP.dbc
./dbc/QuestFactionReward.dbc
./dbc/ScalingStatValues.dbc exists, and has 20 field(s) (expected 24). Extracted
 file might be from wrong client version or a database-update has been forgotten
.
./dbc/SoundEntries.dbc exists, and has 29 field(s) (expected 30). Extracted file
 might be from wrong client version or a database-update has been forgotten.
./dbc/Spell.dbc exists, and has 222 field(s) (expected 234). Extracted file migh
t be from wrong client version or a database-update has been forgotten.
./dbc/SpellDifficulty.dbc
./dbc/SpellItemEnchantment.dbc exists, and has 37 field(s) (expected 38). Extrac
ted file might be from wrong client version or a database-update has been forgot
ten.
./dbc/TeamContributionPoints.dbc
./dbc/Vehicle.dbc exists, and has 43 field(s) (expected 40). Extracted file migh
t be from wrong client version or a database-update has been forgotten.
./dbc/VehicleSeat.dbc exists, and has 45 field(s) (expected 58). Extracted file
might be from wrong client version or a database-update has been forgotten.
./dbc/WorldMapArea.dbc exists, and has 10 field(s) (expected 11). Extracted file
 might be from wrong client version or a database-update has been forgotten.

Link to comment
Share on other sites

ok just as a progress note .. I removed the auth, world and character databases, redownloaded the TDB_full_335.51_2013_02_14.  I also,

as following the How-To guide i did the following:

 

  1. Create the three databases by importing C:Trinitysqlcreatecreate_mysql.sql. You now have three databases - auth, characters, and world. You may need to refresh your program in order to see the new databases.
  2. Click on the "auth" database and import the auth database structure by importing C:Trinitysqlbaseauth_database.sql.
  3. Click on the "characters" database and import the characters database structure by importing C:Trinitysqlbasecharacter_database.sql.
  4. Click on the "world" database and import the world database structure by extracting and importing the "TDB_full" .sql file you downloaded from the downloading the database section.

Now, the TDB that I downloaded had its own auth, world and TDB_Full, but I followed the How-To directions and used the auth and characters from the

trinitycore not from the TDB itsself.  I also then added the TDB_Full to the "world" database

 

None producted errors but hoping this will fix the problem

Link to comment
Share on other sites

make sure you actually have 3.3.5a and not 3.3.5 or 4.3.4 or even 5.x.x... and make sure that you actually extracted itr yourself, if this is a repack, or, even if you just downloaded the DBCs and maps from somewhere, we can't provide support, as we can't verify that they are the correct ones.

Link to comment
Share on other sites

huh? that link seems to be incorrect, unless you are saying that the repack still has trinitycore.org as the address, that doesn't mean anything, we still don't support repacks. and, it's an old one as well, TDB is up to 335.51 now, and, has been for months.

 

 

3.0.1? even the repack you have isn't that old.

Link to comment
Share on other sites

im not sure haha after I compiled the authserver and worldserver and ran worldserver it said the following:

Using World DB: TDB 335.50

 

I downloaded the full (i guess so) Wrath of the Lich King .. 6.53GB from the internet ..

 

The startup screen .. where its trying to patch the game says:  3.0.1.8874

 

.. Do I need the patches to patch my way up to 3.3.5a like I see on WoWWiki (which I cant seem to find where to download the

patches) or what?

 

Thanks

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


  • Similar Content

    • By xgamerninjax
      Hello all, first time posting here and it's really got me scratching my head.
      I've compiled everything on my own computer, and then transferred everything to a host computer so the server can stay live. The server was running fine for a month or so and then suddenly it just crashes when it hits "Loading C++ scripts", exiting saying "caught signal 22"
      I tried setting up the host computer from scratch and transferred everything over fresh and it's still happening for some reason. (Note, I can run the server perfectly on my personal pc where I compiled it.)
      Any help would be greatly appreciated, thanks!
      3d7e3a40e2b3+_worldserver.exe_[1-4_15-19-45].dmp 3d7e3a40e2b3+_worldserver.exe_[1-4_15-19-45].txt
    • By Rochet2
      A lot of people have asked how to debug so I made this short guide on how to set up debugging.
      This guide only tells you how to actually set up debugging in TrinityCore on Windows and Linux.
      This will not explain the basics of debugging. You can google those or play around with the debugger to learn.
      Here are a few videos that explain how to actually debug after setting debugging up on visual studio: https://youtu.be/0ebzPwixrJA and linux: https://www.youtube.com/watch?v=sCtY--xRUyI

      This guide contains multiple guides. Each list of bullet points is it's own guide.
      Make sure you can run the server normally before trying to debug.

      Windows:
      On Windows before anything you should check these
      - Before debugging or making crashlogs etc. with Visual Studio you must compile the core in "Debug" instead of "Release". You can select this in "Build>Configuration Manager" or at the top of Visual Studio window http://i.imgur.com/5oHd59j.png
      - You also need to move the new pdb files generate by compiling in debug mode on Visual Studio from the compile output folder (bin) to your server folder - these files contain information needed for debugging.
      - It is assumed that Solution Explorer is open. Open it by selecting "View>Solution Explorer" in Visual Studio http://i.imgur.com/hkW6Gk0.png
      -- You may want to click on the Home icon to reset the view on Solution Explorer http://i.imgur.com/N8UPwDh.png
      - You can place breakpoints in Visual Studio editor by right clicking a line of code and selecting "Breakpoint>Insert Breakpoint" http://i.imgur.com/L2TxBVG.png
      - At the top of the window you should see controls for stepping and continuing when you have started to debug.
      - Here is a video showing the basic Visual Studio functionality https://www.youtube.com/watch?v=Ijdk4z8-2OI
      Fastest way to debug on windows. This is the easiest way to start up debugging a script.
      - Start the authserver and worldserver normally
      - Open TrinityCore.sln in Visual Studio. This is what you usually open when you want to compile the core
      - In Visual Studio at the top select "Debug>Attach to process...>worldserver.exe" and click "Attach" http://i.imgur.com/jDEI2Hq.png
      - You are now debugging
       
      The second slower way of debugging on windows. This is useful for debugging something that occurs in the startup of the server.
      - Open TrinityCore.sln in Visual Studio. This is what you usually open when you want to compile the core
      - In solution explorer right click on worldserver and select "Set as StartUp Project" http://i.imgur.com/wvMzeRA.png
      - In solution explorer right click on worldserver and select "Properties" http://i.imgur.com/rTNEF9O.png
      -- In Properties you should go to "Configuration Properties>Debugging" and edit "Working Directory" to point to the server folder. For me this is the default compile folder so I use "$(OutDir)" http://i.imgur.com/aRI29fB.png
      - Start the authserver normally
      - Start the worldserver by selecting "Debug>Start Debugging". The server will start with debugging attached from the beginning http://i.imgur.com/cg1KJNw.png
      - You are now debugging
      Crashlogs on windows. Once you have a way to reproduce a crash you can get a crashlog that can help you resolve it.
      - After compiling the core in "Debug" instead of "Release" start up the worldserver and authserver
      - Reproduce the crash you have
      - In the server folder there is now a folder called Crashes that contains txt and dmp files. http://i.imgur.com/9eQIdql.png
      - You can open the txt files in text editors http://i.imgur.com/EH6R17E.png
      -- At the top of a txt file there is some information about your system and below it there is the Call Stack and below that there are Variables of each part of the call stack
      -- The Call Stack will tell you at the top what was the last function call before crashing and what function calls led to that function call.
      -- Next to the function names there is the file that the function is defined in and the line number the code was executing in that function.
      -- In the Variables section you can inspect variables that were present at each function call.
      -- Based on this information you are often able to see what crashed or get a better view of what you need to inspect more in your code.
      - The dmp file can be opened in Visual Studio
      -- Open TrinityCore.sln in Visual Studio. This is what you usually open when you want to compile the core
      -- Drag and drop the dmp file to Visual Studio
      -- In the window that opens click to "Debug with Native Only" http://i.imgur.com/OgyU2kM.png
      -- In the window popup click "Break" http://i.imgur.com/4jDzqRn.png
      -- You are now in a state like you would have hit a break point in the code or a crash while debugging. You can inspect the call stack and the variables.
      Edit and continue on windows. When debugging this allows you to change the code and without restarting the server apply those changes so they actually work ingame.
      - Open TrinityCore.sln in Visual Studio. This is what you usually open when you want to compile the core
      - In solution explorer right click on worldserver and select "Properties" http://i.imgur.com/rTNEF9O.png
      -- In Properties select "Configuration Properties>Linker>General" and set "Enable Incremental Linking" to "Yes". http://i.imgur.com/caQqwN5.png
      -- In Properties select "Configuration Properties>Linker>Advanced" and set "Image Has Safe Exception Handlers" to "No". http://i.imgur.com/FYzN8Ks.png
      -- In Properties select "Configuration Properties>C/C++>General" and set "Debug Information Format" to "Program Database for Edit And Continue". http://i.imgur.com/pxQ6I8N.png
      - At the top of the window select "Tools>Options". In the Options select "Debugging>General" and in there select "Enable Edit and Continue", "Enable Native Edit and Continue" and "Require source files to exactly match the original version".
      - Compile the server for the changes to take effect.
      - Set up "The second slower way of debugging" (I did not test edit and continue on other configurations)
      - Start the authserver normally
      - Start the worldserver by selecting "Debug>Start Debugging".
      - Try edit a cpp file a little and save it.
      - At top of Visual Studio window select "Debug>Apply Code Changes" and wait until the changes are applied. Warning: it can take considerable amount of time for the changes to be applied. http://i.imgur.com/77pb58E.png
      - If you have issues, be sure to check the error messages in Output. You can view it by selecting "View>Output" http://i.imgur.com/4cIznW9.png
      - This guide was written based on https://msdn.microsoft.com/en-us/library/esaeyddf.aspx and https://blogs.msdn.microsoft.com/vcblog/2015/07/22/c-edit-and-continue-in-visual-studio-2015/
      Linux:
      First we need to compile the server in debug mode.
      - Compile the server with the cmake flag -DCMAKE_BUILD_TYPE=Debug

      Debugging on linux. You can debug on linux by using GDB.
      - Here is a good video about it: https://www.youtube.com/watch?v=sCtY--xRUyI
      - Basically you
      -- Start the authserver
      -- Start the worldserver by using "gdb ./worldserver"
      -- Enter breakpoints by using break command on gdb
      -- Use the run command on gdb to start the server
      -- You are now debugging
      - You may also be interested in using VScode or some other more visual debuggers. https://www.youtube.com/watch?v=B0xTgyCwsAo
      Crashlogs on linux. Once you have a way to reproduce a crash you can get a crashlog that can help you resolve it.
      - Take crashreport.gdb from /contrib/debugger from source folder and place it to your server folder
      - Start the authserver
      - Start the worldserver by using "gdb -x crashreport.gdb ./worldserver"
      - Reproduce your crash
      - There should be a backtrace.log in your server folder that contains information about the crash like the callstack and variables in each function call in the call stack
      - This guide was written based on https://github.com/TrinityCore/TrinityCore/blob/master/contrib/debugger/README
      Running valgrind on linux. This helps you find memory errors like invalid reads and writes and memory leaks.
      - Here is a good video about it: https://www.youtube.com/watch?v=fvTsFjDuag8
      - Basically you
      -- Start the authserver
      -- Start the worldserver by using "valgrind ./worldserver"
      -- Run your code that you want to analyze and close the server
      -- The console or an output log should contain the valgrind log
    • By reyne
      Hey there!

      I've followed a few threads here about map extraction, and am still having issues. Originally, I was having the issue described here.
      After following the advice given in that thread (creating characters of both BC races and running around for a bit), I am no longer getting that error, however now I get the following error while trying to extract maps:

      `Error loading World\Maps\Expansion01\Expansion01_42_6.adt`

      This repeats for every line in Expansion01, and then the extractor crashes.

      I'm not sure where else to go from here.

      Thanks for your help

      Edit: I've created an 85 on an i85 server and flown all around Outland now, same issue.
    • By Uee
      I recently found the Trinity Cataclsym Preservation Project and thought I will try it out.
      I am already running 3.3.5a and Master - both server run great
      Pulled 4.3.4 down using Git and built it same way as others:
      boost_1_73_0 cmake 3.17.2 Mysql 5.7.30 VS Community 2019 Built fine - no issue. Used 'Extractor.bat' to run all the map extractors - worked great!
      Noticed there was extra file 'connection_patcher.exe`, ran that - worked great! Now have "wow_patched" and use this to launch client
      MySQL runs in standalone mode, -initialize, added base sql files, imported, auth and character sql files
      Configured both the .conf files and passwords, IPs etc are all in place.
      Note: When loading the exe and built conf file, bnetserver complain about these items missing, so I add them:
      Updates.AutoSetup = 1 Updates.EnableDatabases = 0 LoginDatabase.SynchThreads = 1 Load up Mysql - loads fine
      Load up bnetserver and appears to load ok - last few lines look like this:
      Connected to MySQL database at 127.0.0.1
      DatabasePool 'auth' opened successfully. 2 total connections running.
      Started auth database connection pool.
      Listening on connections from worldservers on port 1118...
      Load up worldserver and it adds the FULL world and hotfixes, then applied all updates (confirmed archived in SQL) - last few lines look like this:
      Calculate next monthly quest reset time...
      Calculate random battleground reset time...
      Calculate guild limitation(s) reset time...
      Calculate next currency reset time...
      World initialized in 0 minutes 13 seconds
      TrinityCore rev. d0c7bbab40bc 2020-05-06 00:01:21 +0200 (master branch) (Win64, RelWithDebInfo, Static) (worldserver-daemon) ready...
       
      There are no db errors in logs.
      Config.wtf contain portal, realmlist as remote server and patchlist as localhost.
      When I try to connecting using "user@local" and password I get immediately disconnected.
      What I did noticed different is that the bnetserver doesnt add "Added realm "Battle for Azeroth" at 192.168.10.213:8085." (From my Master log) 
      3.3.5a also have this line as last line in authserver - but 4.3.4 is not giving me this one.
      Realmlist table is accurate with right information.
      Anyone know why bnetserver is not starting me realm?
       
    • By Deer_Hunter
      Hello all,
      I just updated from the latest Git 
      Trinity Core REV. ac6baa547376 + 2020-02-21  3.3.5 Branch.
      I'm getting this error after crash.
      Problem signature:
        Problem Event Name:    APPCRASH
        Application Name:    worldserver.exe
        Application Version:    0.0.0.0
        Application Timestamp:    5e50a462
        Fault Module Name:    StackHash_f12f
        Fault Module Version:    6.3.9600.19629
        Fault Module Timestamp:    5e2fdc0d
        Exception Code:    c0000374
        Exception Offset:    PCH_9E_FROM_ntdll+0x0000000000090D0A
        OS Version:    6.3.9600.2.0.0.272.7
        Locale ID:    1033
        Additional Information 1:    f12f
        Additional Information 2:    f12f0934d3e965f73c68e60f20f2cd40
        Additional Information 3:    7595
        Additional Information 4:    7595e4d8d703db9dcd3d2f6ea540e357
      the exception code says its a Heap error,  I'm not sure how to troubleshoot this.
      Thanks
×
×
  • Create New...