OpenSim - MySQL Install Guide - SLUniverse Forums
 
Navigation » SLUniverse Forums > Community Discussion > Other Grids / Virtual Worlds > OpenSim Discussion » OpenSim - MySQL Install Guide


OpenSim Discussion Discuss development, use, and support issues related to the OpenSim project.

Reply
 
LinkBack Thread Tools Display Modes
Old 07-16-2008, 02:57 PM   #1 (permalink)
Shiny Officer
 
Maxx Monde's Avatar
I can't do this anymore...
 
Join Date: Sep 2007
Location: Washington D.C.
Posts: 201
My Mood:
SL Join Date: 11/14/03
Cool OpenSim - MySQL Install Guide

Hey there, finally got a guide to installing MySQL server and configuring it for use with OpenSim posted.

OpenSim - MySQL Install Guide « OpenSim Easy User Guide

Enjoy!
Maxx Monde is offline   Reply With Quote
Old 07-31-2008, 06:49 PM   #2 (permalink)
Is a bastage!
 
Macphisto Angelus's Avatar
It puts the lotion on it's skin!!
 
Join Date: May 2008
Location: Cali
Posts: 3,066
My Mood:
SL Join Date: 10-21-2004
Maxx, as always... Thank You for making the most easy to follow set up instructions for a OpenSim noob.

Couple questions if you have time:

I am trying to set up MySQL since Joshua indicated in another thread that it is easier to back up to and you indicate the performance is better. Soooo with that said, being the noob I am I went to my favorite source of showing me how to make stuff work.. your blog.

I would respond there but figured it would be easier for you here. If you would rather use the blog for this.. just say so.

I followed the bouncing ball.. things were coming together nicely. Then.. as John says:

Quote:
I could not get it to work. installed it fine no errors service started. Opened Toad and the Object Palette is grayed out I can’t click on it. When I open Toad it opens a connection screen there is my sql listed but it says it should display properties of the connection nothing there.
I removed the programs and reinstalled again same problem
any ideas. I am running Vista could that be the problem?
I am on XP. But a solution was offered by Mark:

Quote:
I had the same problem as John, brought up the Mysql DOS window and entered the command: “CREATE DATABASE opensim;”
and then reopened toad and set the connection window up to connect to opensim as root@localhost and gave it my password and told it to connect automatically then saved it. Now the Object Pallet is working.
Mark
Yay.. but. Noobness set in. I tried to figure out what he meant here. I was able to "CREATE DATABASE opensim;" This is where I need a "for dummies" explaination.

Quote:
and then reopened toad and set the connection window up to connect to opensim as root@localhost and gave it my password and told it to connect automatically then saved it.
Now, after getting this working I am wondering..
1. Do I do backups or do the backups happen in real time as things are created right to the Mysql database?

2. If I have another situation where my OpenSim locks up with errors and I have to begin again, how do I get the assets from Mysql to OpenSim?

Don't you just love pesky noobs?
__________________
If life is just a joke, why aren't we laughing?



Macphisto Angelus is offline   Reply With Quote
Old 07-31-2008, 07:18 PM   #3 (permalink)
Account Closed
 
Joshua Nightshade's Avatar
Unedited
 
Join Date: Jun 2007
Posts: 33,567
My Mood:
Okay so I kindof disagree with your instructions upon reading them further.

At setup instead of "Typical" choose Custom. You can leave the options as is, but it gives you a different setup menu.

When you get to the part about setting up the server, DON'T choose standard actually.

Pick detailed.

First option should be developer machine.

Next should be Multifunctional Database.

Leave the InnoDB Tablespace settings as is and hit next.

Manual settings for the next window, concurrent connections should be 15.

Enable TCP/IP Networking and UNCHECK Enable Strict Mode.

Best support for multilingualism.

Install as a service, uncheck the Bin directory one.

Then hit execute.

Instead of Toad, at least on windows, I suggest people use the MySQL GUI tools here:

MySQL :: MySQL GUI Tools Downloads

Administrator and Query Browser will be much easier.

Once you've got those installed fire up Query Browser and right click in the "folder" listing and hit create schema, name it opensim or whatever.

Use the same instructions for changing the ini file.
Joshua Nightshade is offline   Reply With Quote
2 Users Said Thanks :
Old 07-31-2008, 07:25 PM   #4 (permalink)
Account Closed
 
Joshua Nightshade's Avatar
Unedited
 
Join Date: Jun 2007
Posts: 33,567
My Mood:
Quote:
Originally Posted by Macphisto Angelus View Post
Now, after getting this working I am wondering..
1. Do I do backups or do the backups happen in real time as things are created right to the Mysql database?

2. If I have another situation where my OpenSim locks up with errors and I have to begin again, how do I get the assets from Mysql to OpenSim?

Don't you just love pesky noobs?
You would have to run backups yourself. MySQL Administrator lets you backup and restore, and there's an option there for scheduled backups. Toad might as well but I've never used it so I know noffink.

To explain the database it's kindof like thinking of OpenSim and directories. Before you setup MySQL, OpenSim stored everything in one limited directory by default. Now that you're in MySQL you're storing everything into another directory. Updating OpenSim doesn't really have much effect most of the time on the database (there are some bugs but generally speaking no) so if OpenSim won't open that doesn't affect your database.

However one of the developers, JustinCC, recently released a very fucking kickass tool that lets you archive entire sim states. All the scripts, textures, prims, etc that exist in-sim.

To use that go to the console and type save-oar (if you're running multiple regions type change-region "Region Name" first to archive the correct one) and it will save it to a default name in the bin directory. Load-oar (again, change-region first) will restore the same default file. Obviously putting a name after either of those commands will allow you to save your own filename.

This offloads everything into a single file for easy transport and I highly recommend it. Unfortunately it won't copy inventory and so on but anything rez'd in world can easily be copied.
Joshua Nightshade is offline   Reply With Quote
2 Users Said Thanks :
Old 07-31-2008, 07:31 PM   #5 (permalink)
Is a bastage!
 
Macphisto Angelus's Avatar
It puts the lotion on it's skin!!
 
Join Date: May 2008
Location: Cali
Posts: 3,066
My Mood:
SL Join Date: 10-21-2004
Oh, Joshua...once again you are my hero!

I am going to go and try this out now. I will use the tool you mention and am extremely stoked about that tool JustinCC has made.

On importing the sim state back on a fresh install, what would be the command?
Macphisto Angelus is offline   Reply With Quote
Old 07-31-2008, 07:32 PM   #6 (permalink)
Account Closed
 
Joshua Nightshade's Avatar
Unedited
 
Join Date: Jun 2007
Posts: 33,567
My Mood:
Same thing, load-oar.
Joshua Nightshade is offline   Reply With Quote
1 User Said Thanks:
Old 07-31-2008, 07:33 PM   #7 (permalink)
Account Closed
 
Joshua Nightshade's Avatar
Unedited
 
Join Date: Jun 2007
Posts: 33,567
My Mood:
Obviously you want to make sure the archived files are in the bin directory first though. The default name is scene_oar.tar.gz
Joshua Nightshade is offline   Reply With Quote
1 User Said Thanks:
Old 07-31-2008, 07:48 PM   #8 (permalink)
Is a bastage!
 
Macphisto Angelus's Avatar
It puts the lotion on it's skin!!
 
Join Date: May 2008
Location: Cali
Posts: 3,066
My Mood:
SL Join Date: 10-21-2004
Awesome!! Thanks again.
Macphisto Angelus is offline   Reply With Quote
Old 07-31-2008, 07:50 PM   #9 (permalink)
Account Closed
 
Joshua Nightshade's Avatar
Unedited
 
Join Date: Jun 2007
Posts: 33,567
My Mood:
Quote:
Originally Posted by Macphisto Angelus View Post
Tease!
Joshua Nightshade is offline   Reply With Quote
Old 07-31-2008, 07:54 PM   #10 (permalink)
Is a bastage!
 
Macphisto Angelus's Avatar
It puts the lotion on it's skin!!
 
Join Date: May 2008
Location: Cali
Posts: 3,066
My Mood:
SL Join Date: 10-21-2004
Quote:
Originally Posted by Joshua Nightshade View Post
Tease!

Now.. now. Nothing wrong with a peck on the cheek. It's not like I used a BJ emoticon.
Macphisto Angelus is offline   Reply With Quote
1 User Laughed:
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On