Always same error with MySQL and VestaCP
Posted: Mon May 04, 2015 11:03 am
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.
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.