Solved

Mysql

Posted on 2011-09-04
7
273 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
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…

758 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

20 Experts available now in Live!

Get 1:1 Help Now