Solved

Mysql

Posted on 2011-09-04
7
287 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
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…

738 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