Bitnami WordPress with NGINX and SSL - Error establishing a database connection #1120
Labels
how-to
How to issues reported by users
solved
stale
15 days without activity
triage
Triage is needed
wordpress-nginx
Describe your issue as much as you can
The VM runs in Virtual Box on my personal PC at home, and while doing something unrelated, I restarted my PC (it probably warned me there was a VM running, and I probably said restart anyway). After the PC restarted, I started the VM again, but now when going to the website URL, I now get the error mentioned. Note before the PC shutdown, everything was working correctly.
It uses MariaDB.
sudo /opt/bitnami/ctlscript.sh status mariadb
it reads mariadb already runningI ran
sudo /opt/bitnami/ctlscript.sh restart mariadb
just to make sure , Restarted mariadbI tried
ping 127.0.0.1
and it shows30 packets transmitted, 30 received 0% packet loss
I tried
mysql -u root -p
and using the application password, successfully logs into MariaDB monitor and shows id and Server versionAfter logging into MariaDB Server, i ran
SHOW GRANTS FOR 'bn_wordpress'@'127.0.0.1';
and it saysERROR 1141 (42000) There is no such grant defined for user bn_wordpress on host 127.0.0.1 MariaDB
I tried
mysql -u bn_wordpress -h 127.0.0.1 -p
using the default password (and by default i mean the one we see when the VM first loads) , and it returnsError 1045 (28000): access denied for user 'bn_wordpress'@127.0.0.1 (using password: YES)
Also, inside wp-config.php, I changed the following:
define('WP_DEBUG',true); #it was false
added
define( 'WP_ALLOW_REPAIR', true );
After i go to www.yoursite.com/wp-admin/maint/repair.php , here's what I get:
No, I'm not sure bc i have recent edited this value, so i don't know what it was originally (that was dumb). Does this need to be reset or something?
The text was updated successfully, but these errors were encountered: