(please specify the website or account you are asking about)
The MySQL Username or Password or Database host is wrong as a connection could not be established
(please share the FULL error message you see)
Hi, I wonder if someone could please advise me about some difficulties I am having with my new Wordpress site. I’ve been searching for a few days, apologies if I have missed something obvious.
My site was all up and running until the weekend when it threw a critical error. I tried to remove and reinstall my Softaculous instance of Wordpress in the hope this would help. However I am now unable to edit the database details when I go into the area to make the updates (“edit installation details”), I keep getting “The MySQL Username or Password or Database host is wrong as a connection could not be established.” I have checked all the details several times but am not sure where I am going wrong. The formats I am inputting are:
Database Name: epiz_33148532_nameofdb
Database password: matches what’s showing in “MySQL details”
Database user: 3148532
Database host: sql307.byetcluster.com
This also matches the wp-config file. I am at a loss as to what has gone wrong so grateful for any ideas, thanks!
(other information and details relevant to your question)
Thank you so much, how obvious - can’t believe I did that! Unfortunately I still get an error message but it now says “The MySQL database name is incorrect as the database could not be selected.” So hopefully I am a step closer though I am still confused why it doesn’t like the database name.
Hello, just to give an update, I was unable to change the database details in the Softaculous “edit installation details” area so as a workaround I re-exported / imported the database I wanted and that seemed to work OK. I have now tried to take the steps suggested in How to fix a corrupted WordPress installation kindly provided by @kangjl but now when I navigate to my site I see “Directory Listing”.
Incidentally I am now unable to make any changes at all in the “edit installation details” area, even just deselecting automatic updates gives me that same error message “The MySQL database name is incorrect as the database could not be selected.”
Just in case anyone has encountered or encounters in the future, the same issue.