- Joined
- Apr 9, 2012
- Messages
- 120
- Reaction score
- 36
this Tutorial Work 100% and without deleting anything how to fix the database corrupted
Step 1 Create file :fix.sh into /yourpwserver/gamedbd/
and copy this cord and past into fix.sh and change /PWServer/gamedbd/dbhomewdb/ to
/yourpwserver/gamedbd/dbhomewdb/
step 2 create folder :dbhomewdb
and move your old dbdata into /yourpwserver/gamedbd/dbhomewdb/
Step 3 create new folder :dbdata into /yourpwserver/gamedbd/ the folder must be empty
Step 4 Delete the dblogs into /yourpwserver/gamedbd/
Step 5 give permission 777 to fix.sh
and type the command: cd /yourserver/gamedbd/
./fix.sh
after done reboot the server then check it
if is ok them delete or backup your old data into /yourpwserver/gamedbd/dbhomewdb/
if you have any problem in this you may ask here
===============================================================================
the script made by rbb138 and said:
remade to work with all server by ragezone works 100%
Step 1 Create file :fix.sh into /yourpwserver/gamedbd/
and copy this cord and past into fix.sh and change /PWServer/gamedbd/dbhomewdb/ to
/yourpwserver/gamedbd/dbhomewdb/
Code:
echo "rebuilding the character database, MAKE SURE SERVER IS OFF"
cd /PWServer/gamedbd/
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/auction -d /PWServer/gamedbd/dbdata/auction
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/base -d /PWServer/gamedbd/dbdata/base
sleep 5
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/city -d /PWServer/gamedbd/dbdata/city
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/clsconfig -d /PWServer/gamedbd/dbdata/clsconfig
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/config -d /PWServer/gamedbd/dbdata/config
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/factioninfo -d /PWServer/gamedbd/dbdata/factioninfo
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/factionname -d /PWServer/gamedbd/dbdata/factionname
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/factionfortress -d /PWServer/gamedbd/dbdata/factionfortress
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/friends -d /PWServer/gamedbd/dbdata/friends
sleep 5
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/gtask -d /PWServer/gamedbd/dbdata/gtask
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/inventory -d /PWServer/gamedbd/dbdata/inventory
sleep 5
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/mailbox -d /PWServer/gamedbd/dbdata/mailbox
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/messages -d /PWServer/gamedbd/dbdata/messages
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/order -d /PWServer/gamedbd/dbdata/order
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/rolename -d /PWServer/gamedbd/dbdata/rolename
sleep 5
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/sellpoint -d /PWServer/gamedbd/dbdata/sellpoint
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/shoplog -d /PWServer/gamedbd/dbdata/shoplog
sleep 5
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/status -d /PWServer/gamedbd/dbdata/status
sleep 5
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/storehouse -d /PWServer/gamedbd/dbdata/storehouse
sleep 5
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/task -d /PWServer/gamedbd/dbdata/task
sleep 5
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/translog -d /PWServer/gamedbd/dbdata/translog
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/user -d /PWServer/gamedbd/dbdata/user
sleep 5
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/userfaction -d /PWServer/gamedbd/dbdata/userfaction
sleep 5
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/waitdel -d /PWServer/gamedbd/dbdata/waitdel
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/auction -d /PWServer/gamedbd/dbdata/auction
./dbtool dbtool -r -s /PWServer/gamedbd/dbhomewdb/dbdata/equipment -d /PWServer/gamedbd/dbdata/equipment
sleep 5
cd /PWServer/gamedbd/
TIME=`date +%B%d--%k:%M`
cd /PWServer/gamedbd/
mkdir dblogs
echo "character database is now rebuilt."
step 2 create folder :dbhomewdb
and move your old dbdata into /yourpwserver/gamedbd/dbhomewdb/
Step 3 create new folder :dbdata into /yourpwserver/gamedbd/ the folder must be empty
Step 4 Delete the dblogs into /yourpwserver/gamedbd/
Step 5 give permission 777 to fix.sh
and type the command: cd /yourserver/gamedbd/
./fix.sh
after done reboot the server then check it
if is ok them delete or backup your old data into /yourpwserver/gamedbd/dbhomewdb/
if you have any problem in this you may ask here
===============================================================================
the script made by rbb138 and said:
This script will not work for 1.4.5, it was made by me 3 years ago for 1.2.6
Use the new one wanmei made, its inside srcfiles/gamedbd/
remade to work with all server by ragezone works 100%
Last edited:

