• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Resolved Change in database username broke my Wordpress site

sw2022

New Pleskian
Please help! I understand zero from Plesk or Wordpress. I have a site on Plesk and I thought I needed to change the username database there (probably a stupid idea). Anyway, since then my site is not working. I can not login on WP adm, and the message that shows up is "Error establishing a database connection". Could anyone help me? I don not remember the previous username. Can someone explain to me as I was a small child (zero tech knowledge) exactly what to do and where to go, like, step-by-step? I've contacted my hosting company, but I do not have much time and I am not sure they will be able to help.

Please, help
 
An update: I was able to find the old database username (the same that is inside the wp-config.php file) and I updated the database with the old username. But it didnt solved nothing. Any idea what I need to do?
 
You need four things that must fit:
1) servername (normally "localhost")
2) database name
3) user name
4) password
You can either update your database user to match the entries in the wp-config.php file or you can change the entries in the wp-config.php file to match your database user settings. Either way, when these are correctly set Wordpress will work with them.
 
Thank you very much Peter! All was solved! I went into the wp-config.php and found the old username. Then I updated the database with this old username and all worked well! Thank you very much!
 
Back
Top