Page 1 of 1

Always same error with MySQL and VestaCP

Posted: Mon May 04, 2015 11:03 am
by josearcos
I've a cloud instance in DigitalOcean, first thing I do when I create my new droplet is install VestaCP, but I've always the same error with MySQL. In one installation of PrestaShop this is the error that I can see:
Link to database cannot be established: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I've tried removing mysql and installing again but the errors still continue. Sometimes when I reboot my machine it works... It's only happens when I install VestaCP, if I configure Apache and MySQL only with SSH access this error doesn't happens.
Could you help me, please?

Thanks.

Re: Always same error with MySQL and VestaCP

Posted: Tue May 05, 2015 1:40 pm
by skurudo
Show us please mysql error log and your my.cnf

Config and log locations on a Debian and Ubuntu:
https://vestacp.com/docs/#config-log-lo ... ian-ubuntu

Re: Always same error with MySQL and VestaCP

Posted: Tue Aug 18, 2015 9:42 am
by josearcos
Finally I could solve this removing every mysql extension and installing it again. Thanks for your support.

Re: Always same error with MySQL and VestaCP

Posted: Tue Sep 01, 2015 1:04 pm
by skurudo
Nice! ^_^
closed then