3 responses to “Is It Possible To Have Your Mysql Database In A Server Different To The One That Hosts Your Website?”

  1. Mike S

    Yes , it is possible.
    You will need to change a security for a user to allow mysql access from remote machine and in connect clause use the server name instead of localhost. I have not seen any hosting providers which would allow this.

  2. efremesc

    They can be on different servers (machines) but it’s not practical for small websites. It is a custom practice for large websites with high traffic, they even split the database to multiple machines.

  3. OpenSour

    It is possible. My current host actually keeps the mysql server seperate from the hosting server. Just change the db server from localhost to your server ip or name.