We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Always same error with MySQL and VestaCP
Always same error with MySQL and VestaCP
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.
Re: Always same error with MySQL and VestaCP
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
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
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
Nice! ^_^
closed then
closed then