[help] Database transfers/backups.

Newbie Spellweaver
Joined
Oct 21, 2008
Messages
8
Reaction score
0
Right, I'm using Navicat and MySQL and not knowing much on SQL and Databases, I was wondering if it were possible to easily make a backup of the table contents in a database and transfer it to another database with the same structure?

I've tried exporting sql from each table and then batch executing them in the new database but that doesn't work too well with a lot of the tables, giving errors.

The reason I ask, using Lightning55-DB-Rev7-Beta-1, Monster-Spawn-Table and Lightning55-Core-V2. For some reason every time you create a new character and try to log in the World Server always crashes. Older characters load fine though, only newly created characters crash the World Server.

However, starting a new database again with Lightning55-DB-Rev7-Beta-1 and Monster-Spawn-Table, new characters seem to work fine.

So... I was hoping to transfer most of the accounts, characters and inventory into the new database, however batch executing them often churns out errors.

Any input or help welcome. :wink:
 
Yes it is me dex :laugh: How you doing mate?

Yeah I've tried that, problem is...

Uhm well I've modified the database table structure quite a bit and that's one of the reasons when I execute the sql it wont successfully copy all the data in tables exactly. I'm going to try modifying each separate .sql file using notepad++ or something so it will insert most if not all the table data into the new database.

I might try making a blank database and dump the tables I need into it and then go from there into the new DB. I'll see if I have any luck with this.

If there is any other way, please do tell...
 
Uhm well I've modified the database table structure quite a bit and that's one of the reasons when I execute the sql it wont successfully copy all the data in tables exactly. I'm going to try modifying each separate .sql file using notepad++ or something so it will insert most if not all the table data into the new database.

You just answered it yourself there didn't you? :P
 
mhmm, you can dump each table you want to save, acc/char/inven/bank all that and just re use them on the new database :P
 
Right I found out what the problem was. After I played around with the original databases inventory table, I think I changed one of the fields default value into NULL. (When I was changing Awakenings/Item Bonuses to BIGINT)

Because of this all new characters created had the value of NULL instead of 0. This crashed the world server, but also for some reason didn't allow me to copy the database fields/data into the new database because of it having NULL as the value.

Anyway sorted out now and my original database + characters are now fixed. Thanks all :)
 
Back