Solved

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

Posted on 2016-08-19
3
14 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
Comment Utility
Turns out I had wrong permissions on the newly created /tmp dir:

chmod 777 /tmp

Solved the problem.
0
 
LVL 76

Assisted Solution

by:arnold
arnold earned 500 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
I use MySQL for many of my development projects in a Windows environment. To manage my databases (and perform queries) for years I used a tool called MySQL administrator.  This tool has since been replaced by MySQL Workbench. So I decided to m…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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

11 Experts available now in Live!

Get 1:1 Help Now