Solved

Deleted  /tmp/mysql.sock and mysql won't work now

Posted on 2016-08-19
3
15 Views
Last Modified: 2016-09-26
I deleted  /tmp/mysql.sock because I thought I was just cleaning up a junk folder.  Well, mySQL won't work now.  I've tried stopping and starting the daemon multiple times, as some suggest, but it doesn't re-create the file.

Any ideas?
0
Comment
Question by:hrolsons
3 Comments
 

Accepted Solution

by:
hrolsons earned 0 total points
ID: 41763101
Turns out I had wrong permissions on the newly created /tmp dir:

chmod 777 /tmp

Solved the problem.
0
 
LVL 77

Assisted Solution

by:arnold
arnold earned 500 total points
ID: 41763984
usually, mysql.sock should not be in /tmp it should be in /var/lib/mysql/mysql.sock
your /etc/my.cnf

socket=/var/lib/mysql/mysql.sock

.....
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Introduction In this installment of my SQL tidbits, I will be looking at parsing Extensible Markup Language (XML) directly passed as string parameters to MySQL 5.1.5 or higher. These would be instances where LOAD_FILE (http://dev.mysql.com/doc/refm…
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

948 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

21 Experts available now in Live!

Get 1:1 Help Now