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
LVL 1
umaximAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
PapertripConnect With a Mentor Commented:
What are the directory permissions for /var/run/mysqld

Which user is mysqld supposed to run as?
0
 
Aaron TomoskyTechnology ConsultantCommented:
Is that file in that location?
0
 
umaximAuthor Commented:
it was work with root
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
PapertripCommented:
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 ?
0
 
PapertripCommented:
@umaxim are you still having this issue?
0
 
PapertripCommented:
Hi umaxim, any update on this?
0
 
umaximAuthor Commented:
I doun the error
0
All Courses

From novice to tech pro — start learning today.