Page 1 of 1

adding database Error: Connection to localhost failed

Posted: Fri Feb 19, 2016 6:00 am
by darkworks
Hi recently i switched mysql with mariadb on my server running debian 7 wheezy

now when i try to add new database from my vestapanel i get error "Error: Connection to localhost failed"

any idea how to fix this issue

vesta mysql config file have same root password through which i login to phpmyadmin manually and login through shell
/usr/local/vesta/conf/mysql.conf

Re: adding database Error: Connection to localhost failed

Posted: Fri Feb 19, 2016 7:40 pm
by darkworks
problem is with damn sock ::
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2 "No such file or directory")

Re: adding database Error: Connection to localhost failed

Posted: Fri Feb 19, 2016 8:01 pm
by darkworks
solution is to link that damn sock with actual sock file

ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock