Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-09-2008, 06:15 AM   #1
LQ Newbie
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
Fedora 9:No mysql.sock file found. Cannot start mysql

I installed mysql using rpm package in my Fedora 9. Though the installation did not point out to any errors when i tried to start mysql using mysqld_safe the server starts and then shuts down immediately automatically. When I try to access mysql I got the error that it could not connect to local server through /var/lib/mysql/mysql.sock. I think that this is because I hadn't started the server yet. But how do I start it? mysqladmin and mysqld_safe do not work.
The settings in my.cnf are correct and the path for socket is /var/lib/mysql/mysql.sock. But no such file is found. I have no mysql.sock in /tmp either.
I have disabled selinux if that would have been a problem. Can anyone help me out please.

Last edited by smilingbuddha; 09-09-2008 at 06:16 AM.
Old 09-10-2008, 12:32 AM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

The reason you're getting "mysqld.sock not found" is because you haven't started the MySQL Server.

The best way to test-start is:
/etc/init.d/mysqld start
Once you're sure everything is working, then configure MySQL to start automatically when the system boots. I'm not sure what tools Fedora provides to configure your runlevel (there's probably some kind of "Control Panel" GUI), but you can always use the command-line "chkconfig".

'Hope that helps .. PSM
Old 09-14-2008, 09:17 AM   #3
LQ Newbie
Registered: Sep 2008
Posts: 2

Original Poster
Rep: Reputation: 0

Thanks.. So i hadn't started the server at all.. It works now
Old 03-21-2009, 03:06 AM   #4
LQ Newbie
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Thanks a lot

Thanks a lot paulsm4 ...the best and appropriate answer I found in internet for 'mysql.sock not found' problem ...I have been struggling to solve this problem since last two days. Thanks again.


fedora 9, mysql, mysqlsock

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
mySQL cannot connect, no mysql.sock file. Devilz Linux - Server 13 05-25-2009 12:03 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) sunlinux Linux - Software 1 11-07-2006 12:08 AM
MySQL 3.23.58-14 installation prolem - mysql.sock not found lightcom Linux - Software 4 02-23-2005 12:46 AM
mysql --mysql.sock not found Robin01 Linux - Newbie 2 11-12-2003 11:17 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration