Jump to content


This topic is now archived and is closed to further replies.


Error when running mysql from cli or php

Recommended Posts

I get this following error anytime I try to use mysql, and this just started an hour ago. was working finr before


error 2002: Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock (2)


any ideas how to fix this? tried reinstalling mysql didnt work and i made sure the service was started. running on gentoo linux btw.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.