Solved

Mysql

Posted on 2011-09-04
7
285 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:umaxim
  • 4
  • 2
7 Comments
 
LVL 39

Expert Comment

by:Aaron Tomosky
ID: 36481113
Is that file in that location?
0
 
LVL 21

Accepted Solution

by:
Papertrip earned 500 total points
ID: 36481138
What are the directory permissions for /var/run/mysqld

Which user is mysqld supposed to run as?
0
 
LVL 1

Author Comment

by:umaxim
ID: 36481540
it was work with root
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 21

Expert Comment

by:Papertrip
ID: 36481912
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
 
LVL 21

Expert Comment

by:Papertrip
ID: 36507565
@umaxim are you still having this issue?
0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36520752
Hi umaxim, any update on this?
0
 
LVL 1

Author Comment

by:umaxim
ID: 36550777
I doun the error
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question