MYSQL Error 2002 cant connect to localhost through socket
Running a 1GB Droplet with Apache2 installed. I installed MYSQL but keep getting this error: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ’/var/run/mysqld/mysqld.sock’ (2)
been running though forums and stackoverflow but cannot seem to fix it.
amongst trying to fix it i also seem to no longer be able to access sites through /var/www/sitename
although ip_address brings up the apache 2 default page settings.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.