Score:0

Error establishing a database connection on Bitnami Wordpress Site

ng flag

I'm running Wordpress Bitnami website on an ec2 instance. Operating system is Debian Linux

Earlier today, I noticed my site becoming slow whenever I upload products(Content) I have done technical research on increasing the speed,so one of the options was to resize the instance type from t2.micro to t2.xlarge.

Then I restarted the instance, but displayed different IP-address which I pointed to my DNS A-record.However,when I try to load the site domain address, it displays "Error establishing a database connection." So the site is not actually reachable anymore, yet I can access website files from the FTP Client.

Any Feedback will be highly appreciated.

Jota Martos avatar
cn flag
Bitnami Engineer here. Please ensure all servers are up and running in your instance by running this command `sudo /opt/bitnami/ctlscript.sh status`. If the database is not running, please get more info from it's log file (/opt/bitnami/mysql/data or /opt/bitnami/mariadb/data depending on the Bitnami WordPress version you have). Thanks
Score:0
gp flag
Tim

Regarding changing IP address, add an elastic IP address. The standard public IP changes when an instance is stopped and starts, but an elastic IP is permanent. Note that the private IP address does not change.

Check your wordpress configuration file wp-config.php to work out that domain / IP you gave for your database. My best guess based on the information provided is your configuration is wrong now that the IP has changed.

If this doesn't help you will need to do more diagnostics, look for appropriate logs, edit your post and add them there.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.