I was following this tutorial: https://youtu.be/0Solyc0Jwgo and instead of having a locally hosted mysql database, I’ve used my db cluster on digital ocean (I’m new to DigitalOcean). I set everything up with the permissions on my vps, created the user on mysql, so far so good. But when I enter my database details, it tries to connect and just times out, when I refresh the page ,I am at the start again of the set up dialog of mybb. I suspect it could be because I am not using the ca-certificate digitalocean has provided, but I have no idea how to make mybb use it. I have found several sources for setting https (ssl/tls) for your vps to work with mybb, but none to use the ca-cert to connect to a mysql database. Any help would be appreciated, I’ve been stuck for days with this problem.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey Nickyesulol,
Indeed, connecting your MyBB application to a DigitalOcean Managed MySQL Database Cluster involves a few key steps to ensure secure and proper communication between your application and the database.
The issue you’re facing with the timeout during connection attempts is likely related to not using the provided CA certificate for SSL/TLS encryption. There are a few things that I could suggest checking:
Download the CA Certificate:
Upload the CA Certificate to Your Server:
/etc/ssl/certs/
.Configure MyBB to Use the CA Certificate:
MyBB’s database configuration is usually in the
inc/config.php
file. You need to edit this file to add the necessary details to connect to your DigitalOcean MySQL database, including the path to the CA certificate.Open
inc/config.php
and update the database settings. Here’s an example of what the settings might look like:In this configuration, replace
your_database_name
,your_database_host
,your_database_username
,your_database_password
, andyour_ca_certificate.crt
with your actual database details and the name of your CA certificate file.Check Database Access and Firewall Rules:
Retry the MyBB Setup:
If you still face issues, check the logs on your Droplet and MyBB for any error messages that can provide more insights. Look for errors related to database connections or SSL/TLS handshakes and feel free to share them here so I can try to advise you further!
Best,
Bobby