This forum is no longer active. Please post your questions to our new community site

Forums WordPress

"Error establishing database connection"

Subscribe to "Error establishing database connection" 2 post(s), 2 voice(s)

Avatar tylerofathenry 1 post

I have installed Bitnami’s ami-a29960cb. Yesterday while I was off my boss jumped ahead of me and assigned an elastic IP to the server. He didn’t have terminal access of VNC access so I am not sure how things manage to screw up as bad as they have.

By accessing the site via elastic ip, I receive this error: Error establishing database connection

If I use a different username or password, I receive: Warning: mysql_connect(): Access denied for user ’USERNAME’@’ELASTICIP’ (using password: YES) in /opt/bitnami/apps/wordpress/htdocs/wp-includes/wp-db.php on line 1036

I’ve tried creating new users, using localhost, using the elastic IP, changing the domain in the sql database wherever I could but this problem just doesn’t seem to go away.

Avatar Beltrán Rueda Administrator 3,714 post(s)


Did you try to restart the MySQL database?

$ sudo /opt/bitnami/ restart mysql

Plase post the mysql log file (/opt/bitnami/mysql/data/mysqld.log). If the public IP has changed it is also necessary to run the mysql command that you can find at

Forums WordPress