how to run dbtool succesfuly?
My database is corrupted, it's a test server so I do not care about losing char data(saved users) I can just re-edit my weapon/armor.
Now...
How do I successfully run this? It tells me permission denied! :(
The code for the fix I used.
Code:
echo "rebuilding the character database, MAKE SURE SERVER IS OFF"
cd /dbf
mkdir dbdata
cd /PWServer/gamedbd/
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/auction -d /dbf/dbdata/auction
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/base -d /dbf/dbdata/base
sleep 5
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/city -d /dbf/dbdata/city
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/clsconfig -d /dbf/dbdata/clsconfig
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/config -d /dbf/dbdata/config
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/factioninfo -d /dbf/dbdata/factioninfo
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/factionname -d /dbf/dbdata/factionname
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/friends -d /dbf/dbdata/friends
sleep 5
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/gtask -d /dbf/dbdata/gtask
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/inventory -d /dbf/dbdata/inventory
sleep 5
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/mailbox -d /dbf/dbdata/mailbox
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/messages -d /dbf/dbdata/messages
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/order -d /dbf/dbdata/order
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/rolename -d /dbf/dbdata/rolename
sleep 5
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/sellpoint -d /dbf/dbdata/sellpoint
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/shoplog -d /dbf/dbdata/shoplog
sleep 5
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/status -d /dbf/dbdata/status
sleep 5
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/storehouse -d /dbf/dbdata/storehouse
sleep 5
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/task -d /dbf/dbdata/task
sleep 5
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/translog -d /dbf/dbdata/translog
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/user -d /dbf/dbdata/user
sleep 5
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/userfaction -d /dbf/dbdata/userfaction
sleep 5
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/waitdel -d /dbf/dbdata/waitdel
./dbtool dbtool -r -s /dbf/dbhomewdb/dbdata/equipment -d /dbf/dbdata/equipment
sleep 5
cd /dbf/dbhomewdb
mv dbdata dbdata-old
rm -dir -f dblogs
mkdir dblogs
cd /dbf
mv dbdata /dbf/dbhomewdb
echo "Done..."
Re: how to run dbtool succesfuly?
Where's the "permission denied"?
I don't know exactly what you're talking about.
But try this:
Code:
chmod 777 dbfix.sh
./dbfix.sh
Re: how to run dbtool succesfuly?
It worked!
New prob:
http://kuruptgaming.com/gfile/75r4!-...!72y1nq/qq.jpg
Shows that, but the files were added/moved. Although it still does not let my gamedbd go online! It stays offline..Uhmm
Any help?
A FIX.
NOT "SEARCH".
Do not even bother posting if you are going to say search.
Thanks(:
Re: how to run dbtool succesfuly?
Well, if nothing work, use a backup in your server, or create the server again... anyway, it's only for tests, right? Or maybe a wipe can resolve.
Code:
rm -rf /PWServer/gamedbd/dbf/*
rm -rf /PWServer/UNIQUENAMED/uname/*