Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-09-2011, 07:09 PM
|
#1
|
|
LQ Newbie
Registered: Oct 2011
Posts: 8
Rep: 
|
MySQL Daemon failed to start - no mysql.sock file
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.
|
|
|
|
10-09-2011, 07:21 PM
|
#2
|
|
Guru
Registered: Apr 2005
Location: /dev/null
Distribution: technixOS
Posts: 5,723
|
Hello,
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:
Code:
chkconfig mysqld on
Cheers,
Josh
|
|
|
|
10-09-2011, 07:56 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2011
Posts: 8
Original Poster
Rep: 
|
Ran chkconfig
I ran the:
Code:
chkconfig mysqld on
after I ran the following in run level 5:
Code:
mysqld_safe --user=mysql &
service mysqld start
I am in Fedora 14 and MySQL community edition 5.1.
I did a reboot and the service still did not start after the reboot and the mysql.sock file was missing again. Any more suggestions?
|
|
|
|
10-09-2011, 08:22 PM
|
#4
|
|
Guru
Registered: Apr 2005
Location: /dev/null
Distribution: technixOS
Posts: 5,723
|
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.
|
|
|
|
10-09-2011, 08:30 PM
|
#5
|
|
LQ Newbie
Registered: Oct 2011
Posts: 8
Original Poster
Rep: 
|
The mysqld service starts in run level 2-5
The services say that mysqld is set to startup in run level 2-5. Any other suggestions?
|
|
|
|
10-09-2011, 09:14 PM
|
#6
|
|
Guru
Registered: Apr 2005
Location: /dev/null
Distribution: technixOS
Posts: 5,723
|
After you double check that it is supposed to run in run level 5, reboot, and run the following:
Code:
ps aux | grep mysql
This will check if it is running or not in the background. I want to check this before we go any deeper with this issue....
|
|
|
|
10-09-2011, 09:31 PM
|
#7
|
|
LQ Newbie
Registered: Oct 2011
Posts: 8
Original Poster
Rep: 
|
my.cnf file
Here is the output of my.cnf file:
Code:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
#Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links = 0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
I ran ps aux | grep mysqld after reboot in run level 5 and this is what I get:
Code:
500 2273 0.0 0.0 4412 732 pts/0 S+ 22:23 0:00 grep --color=au
to mysqld
I hope this helps in solving my issue.
|
|
|
|
10-10-2011, 09:09 AM
|
#8
|
|
LQ Newbie
Registered: Oct 2011
Posts: 8
Original Poster
Rep: 
|
Bumping this thread for help
bumping this thrad for help.
|
|
|
|
10-10-2011, 12:44 PM
|
#9
|
|
LQ Newbie
Registered: Oct 2011
Posts: 8
Original Poster
Rep: 
|
Reinstalled Fedora and MySQL
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.
|
|
|
|
10-10-2011, 02:54 PM
|
#10
|
|
Guru
Registered: Apr 2005
Location: /dev/null
Distribution: technixOS
Posts: 5,723
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|