Skip to main content

1 Database, 2 Websites

Comments

6 comments

  • ffeingol
    Any site can access any MySQL database as long as you have the database name/user/password.
    0
  • cPRex Jurassic Moderator
    What @ffeingol said. For example, you could have domain.com/wordpress1 and domain.com/wordpress2 but if the wp-config.php has them set up to use the same database it will work just fine.
    0
  • hmaddy
    account1 and account2 are two different cpanel accounts in same server. And the db hosted on account2. On this situation, is it possible to link database to account1 and account2
    0
  • cPRex Jurassic Moderator
    @hmaddy - it would likely work for reading the database data, but could have issues for writing as we try and keep the database user limited to the cPanel account. In general recommend that people don't share data across accounts.
    0
  • firstdev123
    account1 and account2 are two different cpanel accounts in same server. And the db hosted on account2. On this situation, is it possible to link database to account1 and account2

    I am looking to host multiple websites lets say around 10 on the same cPanel account, is that possible, or would that cause conflicts in the future ?
    0
  • cPRex Jurassic Moderator
    @firstdev123 - there's no reason that wouldn't work using addon domains.
    0

Please sign in to leave a comment.