Link to home
Start Free TrialLog in
Avatar of umaxim
umaximFlag for United States of America

asked on

Mysql

I i get every time error

Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect

when i try to mysql start
Avatar of Aaron Tomosky
Aaron Tomosky
Flag of United States of America image

Is that file in that location?
ASKER CERTIFIED SOLUTION
Avatar of Papertrip
Papertrip
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of umaxim

ASKER

it was work with root
What OS is this?  How did you install mysql-server?  How are you starting mysqld?

Unless you purposely changed something to have it run as root, it's probably not.  You can start it as user root but the actual process will be ran as a non-privileged user.

What are the directory permissions for /var/run/mysqld ?
@umaxim are you still having this issue?
Hi umaxim, any update on this?
Avatar of umaxim

ASKER

I doun the error