Rebuilding a Mysql Database
Step 1 - Make a Backup
The Dreamgrid program has backup utility. Start Dreamgrid and click Ctrl-B, or Navigate to Content->Database Backup and Restore:
The system will open a DOS prompt and back up your regions and both Robust and Opensim region databases to Outworldzfiles\Autobackup folders. This can take a LONG TIME!
Look in that folder and make sure you have both files. These two are only 2K as it is a blank database.
Step 3 - Stop Mysql and move the Data folder
First, exit Dreamgrid. This will stop Mysql.
Navigate to Outworldzfiles\Mysql\
Rename the data folder to data.bak
Step 4 - Create a new, blank database
Download this zip file: Blank-Mysql-Data-folder.zip
Extract it to the Outworldzfiles\Mysql\data.
Step 5 - Start the database
Navigate to mysql\bin. Once there, click on StartManually.bat to run it. You should get a DOS window that is running MySql. This window should not exit.
Go back to the folder view of mysql\bin. Right click the blank area next to the file list and press and hold the shift key. Select Open PowerShell Window Here, or Open Command Prompt here:
A dos box will appear. Type this:
You should get a mysql prompt:
Step 6 - Restore your grid
Type into the MySQL window:
mysql -u root <
Then drag and drop the opensim.sql file onto the dos prompt:
This will take some time. When it finishes, repeat for the other file.
You may now start your grid up.
Log in and make sure your database is okay. Then you can delete the mysql\data.bak folder.
Back to the Best Free Tools in Second Life and OpenSim.