chatterbox42
Member
- Messages
- 38
- Reaction score
- 2
- Points
- 8
I was trying to follow the instructions in the x10 blog on securing WordPress by changing the database name (in an existing installation), but I seem to have messed something up. I got an "Error establishing a database connection" message when I tried to load the site, panicked and changed everything back, but I still get the same error.
The Wordpress admin page shows this additional message:
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.
Since everything was changed back to the original settings I figured something else got altered.
I searched around a bit and the most logical explanation seems to be that the user permissions were reset, but all the suggestions I find involve simply clicking on the username (in the MySQL user list) and checking the relevant boxes, but when I select the user, the only option I get is to change the password. I couldn't find anything at all involving setting permissions (assuming this is even the problem).
Is this something I can sort out from my end or should I open a support ticket?
Edit: I got the permissions sorted but I'm still getting the error. I tried updating the database user password - to see if it was an issue - and it won't recognize the old one, even though I'm copying it directly from the config file.
The Wordpress admin page shows this additional message:
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.
- Are you sure you have the correct username and password?
- Are you sure that you have typed the correct hostname?
- Are you sure that the database server is running?
Since everything was changed back to the original settings I figured something else got altered.
I searched around a bit and the most logical explanation seems to be that the user permissions were reset, but all the suggestions I find involve simply clicking on the username (in the MySQL user list) and checking the relevant boxes, but when I select the user, the only option I get is to change the password. I couldn't find anything at all involving setting permissions (assuming this is even the problem).
Is this something I can sort out from my end or should I open a support ticket?
Edit: I got the permissions sorted but I'm still getting the error. I tried updating the database user password - to see if it was an issue - and it won't recognize the old one, even though I'm copying it directly from the config file.
Last edited: