The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Multiple server question

Discussion in 'General Discussion' started by jj@24khost, Apr 11, 2011.

  1. jj@24khost

    jj@24khost Well-Known Member

    Joined:
    May 27, 2009
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    So I have a domain and want to switch my database to external server

    db.domain.com
    ns1.domain.com
    ns2.domain.com

    the nameservers are easy but when it comes to the database server how
    do I get it to be db.domain.com on a seperate server?

    db.domain on server ip 192.168.1.2
    server1.domain.com ip 192.168.1.1

    with cpanel?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    When you are talking about your domain, are you simply wanting your domain to connect to an off-server MySQL server? The database connection string in your code would simply need to be changed to connect to that remote machine.

    If the issue isn't just one domain needing to connect to a remote machine but the entire cPanel server and all accounts on that cPanel machine, then you would need to configure the remote MySQL machine in WHM > SQL Services > Setup Remote MySQL server area. We have a PDF presentation on how to properly setup a remote MySQL server:

    http://docs.cpanel.net/twiki/pub/Al...ources/TrainingSlides08/RemoteMYSQLServer.pdf
     
  3. jj@24khost

    jj@24khost Well-Known Member

    Joined:
    May 27, 2009
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    it is more so i have domain.com and so the mysql server that is not on the primary server I want to be db.domain.com how would i do this with cpanel?
     
Loading...

Share This Page