LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-18-2006, 12:16 PM   #1
Dsupreeme
LQ Newbie
 
Registered: Jul 2006
Location: Illinois
Distribution: Fedora Core 4/5, Suse 10.0
Posts: 18

Rep: Reputation: 0
Help with MySQL4 on Fedora Core 4


Im fairly new to the linux world but im pretty famailiar with pc's all around. My problems come from an installation of mysql(4) on fedora(4). i guess my main problem would b this message :
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
So i guess i'll jus start with that, hopefully thas the beginning and end of all the issues. Please help if u can or even if u kno of any good tutorials on line please link em. Any user input would be gladly appreciated.
 
Old 08-18-2006, 02:44 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If mysql is running - check with:
ps -ef | grep mysql

Then check if there is a socket open with:
netstat -nlp

You can configure the exact location of your mysql socket file for clients and the server itself in /etc/my.cnf. If you change the location for the mysqld server you will need to restart mysql.
 
Old 08-18-2006, 02:51 PM   #3
Dsupreeme
LQ Newbie
 
Registered: Jul 2006
Location: Illinois
Distribution: Fedora Core 4/5, Suse 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
I've attempted the above and i have sockets open, but i cant configure the location of my socket file. It says that the permission is denied. Is there a step that i am missing???
 
Old 08-18-2006, 02:59 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
The mysql server will probably need write access to wherever you try to create the socket so the permissions on the directory above will probably need changed.
 
Old 08-21-2006, 12:45 PM   #5
Dsupreeme
LQ Newbie
 
Registered: Jul 2006
Location: Illinois
Distribution: Fedora Core 4/5, Suse 10.0
Posts: 18

Original Poster
Rep: Reputation: 0
New issues

Now whenever i try an add a new group the shell tells me that groupadd is an invalid command. Im running Fedora Core 4. Is it the wrong command, and if so what is the correct command to add a new group???
 
Old 08-21-2006, 12:56 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Is the command in your $PATH?

Try using the full path:
/usr/sbin/groupadd
 
Old 08-27-2006, 09:50 AM   #7
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
u did install custom version of mysql before (mysqlclient or server)? I have the similar problem before, it keeping search the socket at /tmp/mysql.sock, but the actual socket at /var/lib/mysql.

After restart mysql, check your server where it put the socket, then try using socket parameter with mysql client.
 
Old 08-27-2006, 09:53 AM   #8
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
Suddenly i remember another ideal,if previous cannot solve your problem, you can try to backup all dabase (stop mysql server and backup the /var/lib/mysql folder), then remove all the content. Then restart the mysql server, see whether any error or not.
It may occur if you have some problem with the mysql datafile too.
 
  


Reply



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
Setup Fedora core 3 & Redhat 7.2 software development environment under Fedora core 5 powah Fedora 1 06-16-2006 10:25 AM
Upgrade Fedora Core 4 (FC4) to Fedora Core 5 (FC5) hangs vogelap Fedora - Installation 10 05-22-2006 09:00 AM
can fedora core 4 be upgraded to fedora core 5 without a full reinstall lcornea Linux - Software 2 05-10-2006 07:58 AM
Removing MySQL4.1 and Installing MySQL4.0.* critical Linux - Software 2 08-04-2005 10:26 PM
Fedora Core 2 - Just days away! Final comments on Fedora Core 1 lrt2003 Fedora 3 05-12-2004 02:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:18 AM.

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