Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

I'm stuck, i can't restore chars(Mangos)

Initiate Mage
Joined
Oct 20, 2006
Messages
33
Reaction score
0
I installed a new pack, i had the platinum pack by amber and now i'm trying to upgrade to a new release, well... i could, but when i import the sql of my chars i get this

2007-02-22 01:38:44 World Database: 127.0.0.1;3306;root;mangos;mangos
2007-02-22 01:38:44 Login Database: 127.0.0.1;3306;root;mangos;realmd
2007-02-22 01:38:44 Realm running as realm ID 1
2007-02-22 01:38:44 Using DataDir C:/MaNGOS/DATA/ ...
2007-02-22 01:38:44 Initialize data stores...
2007-02-22 01:38:46
2007-02-22 01:38:46 >> Loaded 28 data stores
2007-02-22 01:38:46
2007-02-22 01:38:46 Loading Game Object Templates...
2007-02-22 01:38:47 >> Loaded 3704 game object templates
2007-02-22 01:38:47
2007-02-22 01:38:47 Loading player create info & level stats...
2007-02-22 01:38:47
2007-02-22 01:38:47 >> Loaded 40 player create definitions
2007-02-22 01:38:48
2007-02-22 01:38:48 >> Loaded 294 player create items
2007-02-22 01:38:48
2007-02-22 01:38:48 >> Loaded 837 player create spells
2007-02-22 01:38:48
2007-02-22 01:38:48 >> Loaded 496 player create skills
2007-02-22 01:38:48
2007-02-22 01:38:48 >> Loaded 192 player create actions
2007-02-22 01:38:48
2007-02-22 01:38:48 >> Loaded 2400 level stats definitions
2007-02-22 01:38:48 Loading Spell Chain Data...
2007-02-22 01:38:48
2007-02-22 01:38:48 >> Loaded 1330 spell chain records
2007-02-22 01:38:48 Loading Spell Proc Event conditions...
2007-02-22 01:38:48 >> Loaded 818 spell proc event conditions
2007-02-22 01:38:48
2007-02-22 01:38:48 Loading Aggro Spells Definitions...
2007-02-22 01:38:49 >> Loaded 53 aggro generating spells
2007-02-22 01:38:49
2007-02-22 01:38:49 Loading Scripts...
2007-02-22 01:38:49 scripts :
2007-02-22 01:38:49
2007-02-22 01:38:49 >> Loaded 26 script definitions
2007-02-22 01:38:49 spell_scripts :
2007-02-22 01:38:49
2007-02-22 01:38:49 >> Loaded 31 script definitions
2007-02-22 01:38:49 Loading NPC Texts...
2007-02-22 01:38:50
2007-02-22 01:38:50 >> Loaded 2663 npc texts
2007-02-22 01:38:50 Loading Quest Area Triggers...
2007-02-22 01:38:50
2007-02-22 01:38:50 >> Loaded 14 quest trigger points
2007-02-22 01:38:50 Loading Items...
2007-02-22 01:38:56 >> Loaded 14345 item prototypes
2007-02-22 01:38:56
2007-02-22 01:38:56 Returning old mails...
2007-02-22 01:38:56 Loading item_pages...
2007-02-22 01:38:56
2007-02-22 01:38:56 >> Loaded 0 item pages
2007-02-22 01:38:56 Loading Creature templates...
2007-02-22 01:38:58 >> Loaded 8547 creature definitions
2007-02-22 01:38:58
2007-02-22 01:38:58 Loading Quests...
2007-02-22 01:39:00
2007-02-22 01:39:00 >> Loaded 4043 quests definitions
2007-02-22 01:39:00 Loading Guilds...
2007-02-22 01:39:01
2007-02-22 01:39:01 >> Loaded 1 guild definitions
2007-02-22 01:39:01 Loading RaidGroups..
2007-02-22 01:39:01
2007-02-22 01:39:01 >> Loaded 0 raidgroup definitions
2007-02-22 01:39:01 Loading Teleport Coords...
2007-02-22 01:39:01
2007-02-22 01:39:01 >> Loaded 386 teleport definitions
2007-02-22 01:39:01 Loading Pet Name Parts...
2007-02-22 01:39:01
2007-02-22 01:39:01 >> Loaded 198 pet name parts
2007-02-22 01:39:01 Loading pet level stats...
2007-02-22 01:39:01
2007-02-22 01:39:01 >> Loaded 240 level pet stats definitions
2007-02-22 01:39:01 Loading Loot Tables...
2007-02-22 01:39:01 creature_loot_template :
2007-02-22 01:39:23
2007-02-22 01:39:23 >> Loaded 698370 loot definitions
2007-02-22 01:39:23 disenchant_loot_template :
2007-02-22 01:39:23
2007-02-22 01:39:23 >> Loaded 55 loot definitions
2007-02-22 01:39:23 fishing_loot_template :
2007-02-22 01:39:23
2007-02-22 01:39:23 >> Loaded 2155 loot definitions
2007-02-22 01:39:23 gameobject_loot_template :
2007-02-22 01:39:24
2007-02-22 01:39:24 >> Loaded 29448 loot definitions
2007-02-22 01:39:24 item_loot_template :
2007-02-22 01:39:25
2007-02-22 01:39:25 >> Loaded 2609 loot definitions
2007-02-22 01:39:25 pickpocketing_loot_template :
2007-02-22 01:39:25
2007-02-22 01:39:25 >> Loaded 31 loot definitions
2007-02-22 01:39:25 skinning_loot_template :
2007-02-22 01:39:25
2007-02-22 01:39:25 >> Loaded 122 loot definitions
2007-02-22 01:39:25 Initializing Scripts...
2007-02-22 01:39:30 WORLD: Starting BattleGround System
2007-02-22 01:39:32 WORLD: SetInitialWorldSettings done
2007-02-22 01:39:32 Loading Transports...
2007-02-22 01:39:32
2007-02-22 01:39:32 >> Loaded 8 transports
2007-02-22 01:39:32 WORLD: Starting Event System
2007-02-22 01:39:32 WORLD: Starting Corpse Handler
2007-02-22 01:39:33 mangosd process priority class set to HIGH
2007-02-22 01:39:33
2007-02-22 01:39:33
2007-02-22 01:41:03 ERROR:SQL: SELECT `guid`,`account`,`data`,`name`,`race`,`class`,`position_x`,`position_y`,`position_z`,`map`,`orientation`,`taximask`,`highest_rank`,`standing`,`rating`,`cinematic`,`totaltime`,`leveltime`,`rest_bonus`,`logout_time`,`is_logout_resting`,`resettalents_cost`,`resettalents_time`,`trans_x`,`trans_y`,`trans_z`,`trans_o`, `transguid`,`gmstate` FROM `character` WHERE `guid` = '4'
2007-02-22 01:41:03 ERROR:query ERROR: Unknown column 'gmstate' in 'field list'
2007-02-22 01:41:03 ERROR:ERROR: Player (GUID: 4) not found in table `character`, can't load.

It's weird coz i imported the tables and do everything (well, not everything becouse i wouldn't be in this trouble) and i can't restore my chars

Some ideas, cuz i'm out of ideas :scratch:
If someone had this problem and know the awnser plz let me know


Sorry for my bad english
 
Elite Diviner
Joined
May 25, 2006
Messages
484
Reaction score
0
Hi Neo.

From the looks of things you have no exported the correct tables, or maybe you have imported them into the wrong database, so here is a quick reference to how to export/import accounts:-
============================================================
Account Restore.

If you have accounts from another server, then i'll explain how you import them.

There is 2 ways or backing up accounts, one is MDH "Mangos Database Handler" and the other is manualy with Sqlyog.

If you have backed up your accounts via MDH, then simply run MDH and import that way.

If like myself you prefer todo it via Sqlyog, then simply do this:
On your current server thats running, close it down.
Run sqlyog and connect.
Right click on the mangos database and select: Backup database as Sql Dump
It will bring up a window, the left hand side is what tbales are not being exported into an sql file, and the right hand side IS whats being backed up.
Click on the Icon << this will deselect all tables.
Now all the tables will be on the left handside.
This means we can now pick out what tables we want to back up.
Tables to backup:-
==================
auctionhouse
all character tables "yes them all.."
corpse
all guild tables "yes them all.."
Item_instance
mail
all Raid tables "only 2, but yes, take both"
==================
Now at the topright of the Sql backup window, you will see: Export to file.
click on the little icon next to it, and pick a location to save your backup to.
Now pick a name for it "I always call it mangosbak".
Click on export.
Done!
Now right click on realmd database.
And select the Backup database as Sql Dump again.
This time your backing up the whole thing...
Just pick your location to save it, and give it a name. "I call it realmbak"

Your Accounts are now backed up:)

To restore your account son your newly made server:-
Open up Sqlyog.
Click on connect.
Right click on mangos database, and select: Restore from Sql Dump.
Simply located your backed up file you used "the one I normaly call mangosbak" and hit execute.
Do the same with realmd database.

Thats your accounts restored.
==========================================================

That should help you out in the future.

If you find it hard or too messy todo this via Sql, then download MDH "Mangos Database Handler".

It's a very handy frontend tool for Mangos servers, and uses a very easy account backup tool:)
 
Skilled Illusionist
Joined
Oct 13, 2006
Messages
316
Reaction score
110
2916_character.sql adds column 'gmstate' to characters so the correct procedure would be to apply all sql's from \updates that are above the release you were using THEN backup! This makes sure any Db structure changes are made before the backup so the import will be trouble free.
Its sooo easy once you understand ;)
 
Initiate Mage
Joined
Oct 20, 2006
Messages
33
Reaction score
0
Hi Evilryu, and thnks for that guide. it help me out. I was using Navicat but i read in some treads that sqylog is way better, so i'm using sqylog now.

Shiva, thnks for the awnser, i understand now what the update folder is for.
I did all you told me guys and i could do my restore without any troubles, thnks :biggrin2:
 
Back
Top