Moving database from one server to another

Support for IntegraMOD 140

Moderator: Integra Moderator

Moving database from one server to another

PostAuthor: binh.tang » Tue Feb 06, 2007 3:47 pm

Your phpBB Version: 2.0.
phpBB Type: Integramod 140
MODs: No
Your knowledge: Basic Knowledge
Board URL: http://www.mympxplayer.org

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De.scription and Message

Hi all,

I just got another dedicate server for my site running IntegraMOD 1.40. This is going to be my dedicated SQL server.

What I would like to know is, how do you 'tell' IntegraMOD to use the database on server2, while the files are stored on server1 instead?

The situation is:
* Server1 is holding all the FILES.
* Server2 is holding the MySQL database for IntegraMOD.

I copied the database across from existing server1 to server2.

I then changed the HOSTNAME in the config.php file to point to the hostname of SERVER2 (even DNS and IP address doesn't work).

The error once I change the config.php file to point to Server2 is something on the lines of

"...users table doesn't exist"


Even though the database is copied there and I can see the table fine.

Is there something else I need to change to point IntegraMOD to the new SERVER2?

Your help is appreciated.

Thanks,
Binh
Last edited by binh.tang on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
binh.tang
Members
Members
 
Posts: 43
Likes: 0 post
Liked in: 0 post
Joined: Tue Feb 06, 2007 12:11 pm
Cash on hand: 0.00

Re: Moving database from one server to another

PostAuthor: Whisky » Wed Feb 07, 2007 1:08 am

Hello,

Regarding what you explained it should work in this state. You told IM the right way (with the config file) where your DB is.

If it doesn't work,:
* it's maybe because the server 1 do not "see" the server 2, something that can not normally happen if your files are hosted by a professionnal provider, is it the case or are you hosting your files by your own?
If you can connect with telnet on your server 1, do it and try to ping your server 2 to see if it replies.

* Or the DB name/user/password changed from server 1 to 2 and you didn't applied the changes in your config file

* Or the DB copy from server 1 to 2 failed

Some ideas <img>
Last edited by Whisky on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
I am the Lizard King, I can do anything

Whisky
Sr Integra Member
Sr Integra Member
 
Posts: 256
Likes: 0 post
Liked in: 0 post
Joined: Thu May 18, 2006 1:28 am
Cash on hand: 0.00
Location: Brussels


Return to IntegraMOD 140

Who is online

Registered users: Majestic-12 [Bot]