logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Need some advice about MySQL Server

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Technical support
View previous topic :: View next topic  
Author Message
Urlord



Joined: 17 Nov 2006
Posts: 122

PostPosted: Fri Dec 08, 2006 4:15    Post subject: Need some advice about MySQL Server Reply with quote

I am about to migrate from MySQL 4.1 to 5.0. Or should I just go to 5,1 beta?

Is there anything I need to be aware of or worry about?

Also, is there any tricks to migrate my old data?

Can I just copy the database from the 4.1 Data Directory to the 5.0 Data Directory?

I know this is not about NWNX4, but I trust you guys' advice.
_________________
Jim (aka, Urlord)
Visit the Persistent World of Nymri
Back to top
View user's profile Send private message Send e-mail
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Fri Dec 08, 2006 4:32    Post subject: Reply with quote

I've not worked with 5.1 so I can't speak to that.

But to move your data, copying over the directories won't work. Instead: run this command:

mysql_dump -u username -p --all-databases > database.sql

And to restore:

mysql -u username -p < database.sql

At least that's the quickest way I know of -- others may have better suggestions. You may need to recreate user accounts, I can't recall offhand...
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
Grumalg



Joined: 04 Nov 2005
Posts: 70

PostPosted: Fri Dec 08, 2006 4:41    Post subject: Reply with quote

Personally I'm staying away for any MySQL beta's, as there are enough things to worry about without risking DB engine problems.

As far as migration, one simple way is to backup the current DB with the MySQL Admin app. Since the backup takes the form of script commands that include table and index creation and inserting the existing data, restoreing such a backup is in fact creating the DB contents from scratch in the new engine.

You can freely examine such .sql backup files in a text editor and see what they do. I have used this to do things like manually create a table in MySQL admin, then back it up and extract the SQL table creation code into NWScript for editing to handle NWScript creation of DB stuff...

--- Grumalg ---
Back to top
View user's profile Send private message
Urlord



Joined: 17 Nov 2006
Posts: 122

PostPosted: Fri Dec 08, 2006 4:46    Post subject: Reply with quote

Grumalg wrote:
Personally I'm staying away for any MySQL beta's, as there are enough things to worry about without risking DB engine problems.

--- Grumalg ---


Hehe! That was kinda my thoughts too. I just needed someone else to confirm it to me. Thanks Grumalg.
_________________
Jim (aka, Urlord)
Visit the Persistent World of Nymri
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Technical support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group