Jump to content

Hosting Revive Database in a different server from the Application


Maki

Recommended Posts

I have been using revive ads server for over 2 years now and I use a MySQL database within the same server I host the revive application. Now the database is overloaded and I have successfully migrated the huge data to a more scalable database server which is different from where I host the files. I have tried to input all the details of the new database server on my '/var/domain.conf.php' file but I keep getting error connecting page once I reload the page.

How best can one edit the below with new database details. 

New database details (Database name: db-XXXXXXXXXXXX.a.db.ondigitalocean.com, Port: 25060, SSLmode: Required. I have a CA Certificate for the server as well)

[database]
type=mysqli
host=localhost
socket=
port=3306
username=****
password=*******
name=*****
persistent=
mysql4_compatibility=1
protocol=tcp
compress=
ssl=
capath=
ca=

Link to comment
Share on other sites

14 hours ago, andrewatfornax said:

"PHP has not loaded the mysqli extension" - is that the one?

I don't think that is the error because I have been using mysqli extension even in the old database.

 

What I need now is how to edit the database config file to connect to a database which is outside the application server because I tried connecting to a new database which is hosted separately and I got the above error page.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...