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.

Can I link 2 cpanel servers to have a single mysql database server ?

Discussion in 'Database Discussions' started by a24uall, Aug 3, 2012.

  1. a24uall

    a24uall Active Member

    Joined:
    Feb 4, 2010
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    Can I link 2 cpanel servers to have a single mysql database server ?

    Server 1 ---- server 2
    |
    |
    server 3 (MySQL)

    I am a bit concerned because this might lead to overwriting the cpanel used database of one server with other.
    Has some1 tried this?
     
  2. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    Sure you can do this, the only issue that may come up is one user can't create a database or user of the same name. So high demand db names like sales, database and wordpress may require users to pick another name (not always a bad thing).

    Thanks!
     
  3. 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
    Hello,

    I'd also suggest changing Roundcube to SQLite if you are going to do this option. Also, either disabling Horde or possibly having it run locally. The biggest reason is that two servers write to the same Roundcube and/or Horde database will create duplicate user and row lines, because each individual server would have initially had Roundcube and Horde using the same row lines for the tables, so you'll have duplicate lines with different users.

    Eximstats, cphulkd, and others could have the same issue. You'll have to keep this in mind for all of the cPanel services databases.

    Thanks!
     
Loading...

Share This Page