Page 1 of 1

Error: connection failed

Posted: Sun Mar 02, 2014 2:56 pm
by Arnevb
Because I wanted to upload a rather big database I changed the max post limit and the max upload limit to 64M. But since I did that I have the 'Error: connection failed' error whenever I try to access phpmyadmin, or try to delete/add a database. Here's an example:

Image
Image

I have no clue what do to. Any suggestions?

Re: Error: connection failed

Posted: Mon Mar 17, 2014 8:08 am
by melvinneo
I have similar problem. Not all my database are not working. I can't delete any of them from the Control Panel. And I can't do anything via the terminal.

And when I tried to access a site with database, I get the following error:

Error connecting to the database: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)

I'm totally stuck now. :(

Re: Error: connection failed

Posted: Tue Mar 18, 2014 6:08 am
by Tony20
Hello, I just did a new VestaCP Installation and I am having this same problem...

I can not create database. I am getting

Adding database → "Error: Connection failed"



Can someone help with this problem??



Tony:

Re: Error: connection failed

Posted: Wed Mar 19, 2014 10:37 am
by imperio
Tony, try to change mysql root password
and then add new password in Vesta config

Code: Select all

/usr/local/vesta/conf/mysql.conf
find it
PASSWORD='curent_passwd'

Code: Select all

PASSWORD='new_mysql_root_passwd'

Re: Error: connection failed

Posted: Tue Nov 17, 2015 6:04 am
by shabeer
hello
the solution given by imperio to tony work also for me but now phpmyadmin/index.php is not accessible........??????