Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    6

    Default Setting up remote MySQL Server

    Hi,

    We run a Free Web Hosting company. We are starting to get busy and would like to put all of the mysql on a separate server. We are a little confused as to how we would do this and get our control panel (iPanel) which uses cpanel to create the databases on our mysql server. iPanel interfaces with cPanel to create the account so I have a feeling it has nothing to do with iPanel and everything to do with cPanel. If anyone can suggest a tutorial or give us some ideas it would be GREATLY appreciated.

    Cheers!
    Jeff

  2. #2
    Member
    Join Date
    Aug 2004
    Posts
    200

    Default

    Setup the remote SQL server in WHM, thats pretty much all you need to do from the cpanel side as far as I know...

    New accounts and whatever will use the remote server if thats what you're using instead of the local one.

  3. #3
    Member
    Join Date
    Apr 2004
    Posts
    6

    Default

    We have roughly 500 database's currently in use by free customers. Can they still use "localhost" or will every script become botched?

    Thanks man!

    Jeff
    Last edited by PlanetHosted; 02-23-2006 at 08:38 PM.

  4. #4
    Member
    Join Date
    Aug 2004
    Posts
    200

    Default

    Well, the SQL server will obviously be on a "remote host" which would indicate "localhost" will no longer be a valid SQL server host for the database.

    You will need to change everything.

  5. #5
    Member
    Join Date
    Apr 2004
    Posts
    6

    Default

    Is there any possible way to make it stay on localhost? Also if I do have to change anything, will the default on the server be the remote host (aka on scripts in cpanel and such) or will it still be localhost.

    Thanks
    Jeff

  6. #6
    Member
    Join Date
    Aug 2004
    Posts
    200

    Default

    Let me see if I can make this clear...

    localhost = the service is on the local server
    remote host = the service is not on the local server

    To my knowledge, you can't (shouldn't) try to run something "remote" as a "localhost".

    If you think about it for 2 seconds, you can realize why something remote should not be seen as local...

    To solve your issue...leave everything the way it is...

  7. #7
    Member
    Join Date
    Apr 2004
    Posts
    6

    Default

    Quote Originally Posted by djmerlyn
    Let me see if I can make this clear...

    localhost = the service is on the local server
    remote host = the service is not on the local server

    To my knowledge, you can't (shouldn't) try to run something "remote" as a "localhost".

    If you think about it for 2 seconds, you can realize why something remote should not be seen as local...

    To solve your issue...leave everything the way it is...
    Well that would only be making the issue worse. I will just have to find a way to change everyones scripts. We have nearly 9000 accounts on one server and its taking is toll so we are trying to move the MySQL off to lighten the load. However since we have just switched control panels only 600 accounts need moving so we should be ok.

    Thanks
    Jeff

  8. #8
    Member
    Join Date
    Jan 2004
    Location
    Brazil
    Posts
    45

    Default Rinetd

    It is possible to forward the conections from localhost:3306 to remotehost:3306 with rinetd, that'd solve your problem in a better way

Similar Threads & Tags
Similar threads

  1. Setting up remote MySQL server
    By fugtruck in forum E-mail Discussions
    Replies: 0
    Last Post: 05-05-2011, 02:02 PM
  2. Mysql Failed error after setting up Remote MySQL server
    By ReB in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 03-28-2007, 02:47 AM
  3. Setting up remote mysql server. I got this error
    By DeadManWalking in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-08-2007, 07:55 AM
  4. Howto Request: setting up a remote MySQL server
    By protocol in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-26-2006, 12:25 AM
  5. Setting up a Remote MySQL Server
    By cvan in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-27-2005, 03:40 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube