Hi, I purchased Wordpress x theme here and paid an extra fee to get the them set up on my domain name. I only ever had a Wordpress login and then the hosting details. But now I am getting an error “Error establishing a database connection”. Its revealing this database is Digital Ocean. So whoever set up my Wordpress must connected the database to digital ocean? How can I get login details to the database? I have tried contacting my hosting provider and digital ocean (database) to no resolve, but I come here since it was when I purchased xtheme that the Wordpress would have been linked up to digital ocean via the services your company provided. DO you have how I can get login details to the database set up for my Wordpress website? thank you Kindly
Hello Laura,
Thanks for asking.
First let’s clear up few confusions and then I will come to the problem you are facing:
- Digital Ocean: Digital Ocean is a hosting provider company that gives you the platform to host your website files.
- Database: Organized set of data that’s stored and accessed electronically.
- Role of companies like Digital Ocean: Role that Digital Ocean plays is that it gives you all the tools i.e Hosting space, database (usually mysql), PHP, web server and other related tools that you can use to host website.
- How WordPress works: Please take a look at following article to learn. https://www.wpbeginner.com/wp-tutorials/how-wordpress-actually-works-behind-the-scenes-infographic/
To access the information WordPress uses PHP language and the codes written in PHP to access the information in database. Error message that you are getting Error establishing a database connection
means that for some reason WordPress is not able to access information in the database. Now there can be multiple reasons for the same. I suggest you to please take a look at following resources for some solutions:
https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/
https://kinsta.com/blog/error-establishing-a-database-connection/
You can see the database login details by opening wp-config.php file. Here’s an article that you can take a look.
Thanks.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.