Solved

Mysql

Posted on 2011-09-04
7
275 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 38

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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to get total ticket count on days wise using mysql 24 53
null value 15 92
dbcc checkdb datawarehouse 2 41
mysql joining from the same table 6 29
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
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…
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…

919 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now