adding database Error: Connection to localhost failed
adding database Error: Connection to localhost failed
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
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
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
solution is to link that damn sock with actual sock file
ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock