Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-03-2005, 12:33 PM   #1
Member (7 bit)
 
shaticus's Avatar
 
Join Date: May 2004
Posts: 103
Mysql Help

I am running fedora core 3 and have mysql installed but cannot connect. When the computer boots the mysql service starts but "mysql has ended" displays almost immediately afterward. If I manually start it I get the error could not connect to the database using the port in mysql.socket(111)

What do I have to do to get it to connect?

Thanks in advance,
shaticus
shaticus is offline   Reply With Quote
Old 06-03-2005, 03:30 PM   #2
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
The general problem is that mysql doesn't have write permission in the tmp directory. Chmod the tmp directory to 777 (RWX-owner, RWX-group, RWX-anybody).
mairving is offline   Reply With Quote
Old 06-04-2005, 07:47 AM   #3
Member (7 bit)
 
shaticus's Avatar
 
Join Date: May 2004
Posts: 103
I gave that a try but still get the same error.

ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

Thanks,
Shaticus
shaticus is offline   Reply With Quote
Old 06-05-2005, 07:23 AM   #4
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
You might look at this article on the MySQL site for help.
mairving is offline   Reply With Quote
Old 06-06-2005, 02:48 PM   #5
Member (8 bit)
 
neouser99's Avatar
 
Join Date: Jun 2004
Location: Kansas City, MO
Posts: 157
Send a message via AIM to neouser99
Quote:
Originally Posted by shaticus
I gave that a try but still get the same error.

ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

Thanks,
Shaticus
I ran into this problem some time ago. The app you are attempting to use is looking for the socket where it doesn't exist. there are two fixes for this, if you haven't gotten it figured out already. Put a soft link in the /var/lib/mysql folder pointing to the real socket, which is usually existing in the /tmp directory.

Code:
ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
The other way is to change the mysql-server properties to put the socket in the /var/lib/mysql folder instead of tmp...which i believe the article posted can help you with that.

-neo
neouser99 is offline   Reply With Quote
Old 06-09-2005, 05:34 AM   #6
Member (7 bit)
 
shaticus's Avatar
 
Join Date: May 2004
Posts: 103
Thanks for the quick responses. I appoligize for not getting back here sooner but I have been bogged down between work and college.
Read through the article but could not get it working. I created the link to the file but it still will not connect.
Only other thing I can think to try would be a reinstall of mysql.

Thanks,
Shaticus

Last edited by shaticus; 06-09-2005 at 05:55 AM.
shaticus is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:24 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2