Page 1 of 1

Error connection to localhost failed

Posted: Sun Nov 29, 2015 9:17 am
by icbrad
Hello,

I set up my database, but when I want to connect my site to it says:
error connection to localhost failed

It's also not possible to change or delete the DB or to create a new one.

Does anyone has a solution?

Ad

Re: Error connection to localhost failed

Posted: Sun Nov 29, 2015 5:51 pm
by skurudo
Do you changed root password for your database? If so, then you need add new pass in /usr/local/vesta/conf/mysql.conf

Re: Error connection to localhost failed

Posted: Thu Jan 19, 2017 4:33 am
by Fleuv
I stumbled upon the same error after changing the password via the panel > server > db > mysql > password

After doing some research I noticed that the password value didn't change in /root/.my.cnf however at /usr/local/vesta/conf/mysql.conf it shows me the right password, what I submitted through the panel.

Re: Error connection to localhost failed

Posted: Mon Jan 04, 2021 10:52 pm
by Nakao
Thank you guys for suggestion.

I recommend that you should restart MySQL after change the password. See this topic here to do that: viewtopic.php?t=17561