https://wiki.dspt.info/index.php/Building_the_ServerRenO wrote:Is there a guide describing how to update the server database without losing characters data?
Or, as I do when I update, I have a folder that I keep my backup data in. I backup the data listed there (normally, I leave out char_pet_name, char_weapon_skill_points, delivery_box, and linkshells. I suggest you open them in navicat and see if there is anything in these first if you choose to leave them out) by dumping the SQL (Right click on the table you want to keep, select Dump SQL File), and then, after I copy all the files from the update folder to the server folder (I keep mine in separate folders so I don't pollute them, as well as always zip the server folder before deleting the files in there and replacing with the new code), I will copy the dumped SQL files into the server sql folder so when I run the .bat, it will just use those.After you've done your initial load, you can use the following script that will preserve character dataCode: Select all
cd c:\darkstar\sql del auction_house.sql del chars.sql del accounts.sql del accounts_banned.sql del char_effects.sql del char_equip.sql del char_exp.sql del char_inventory.sql del char_jobs.sql del char_look.sql del char_pet.sql del char_pet_name.sql del char_points.sql del char_profile.sql del char_skills.sql del char_stats.sql del char_storage.sql del char_vars.sql del char_weapon_skill_points.sql del chars.sql del conquest_system.sql del delivery_box.sql del linkshells.sql FOR %%X IN (*.sql) DO ECHO Importing %%X & "c:\program files\mysql\mysql server 5.6\bin\mysql" dspdb -h localhost -u root -pMYSQLPASS < %%X