[SOLVED] MySQL Daemon failed to start - no mysql.sock file
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
The mysql.sock file that is supposed to be located at socket=/var/lib/mysql/mysql.sock on the my.cnf file, is not there. I ran the command:
Code:
mysqld_safe --user=mysql &
to restore the file and then I ran:
Code:
service mysqld start
The service starts and the file is created correctly but it does not persist after reboot. The file disappears after reboot. What do I need to do to keep the mysql.sock file in the /var/lib/mysql.sock directory after reboot? Any help is appreciated.
What distribution are you running? When you reboot, most likely the mysqld service is not being started. You need to use chkconfig in order to get it to run in run level 5. Run the following:
Go into Applications, System, Services - Within the services config GUI, scroll down to mysqld and check and make sure that it is supposed to run for run level 5.
Reinstalled Fedora 14 and added 2 gb to /var. Reinstalled MySQL and everything is working fine now. Not quite sure what the problem was. I'm marking this thread as solved. Thanks for your help Corp769.
Sorry for the late reply, I have a kid and he takes up a lot of my time. Glad to see you got it to work though.... It was probably a misconfigured option within chkconfig or something of that sort.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.