Fedora This forum is for the discussion of the Fedora Project. |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-11-2006, 01:23 PM
|
#1
|
LQ Newbie
Registered: Oct 2006
Location: USA
Distribution: Fedora 3, 4, 5
Posts: 6
Rep:
|
mysql error
Hi,
I have Fedora Core 5 installed on my computer with dual OP Windows XP. Yesterday, I was trying to use MySQL, so I put mysql command on the terminal and it gives me the following error:
ERROR 2002 (HY000): Can't connect to local MySQL Server through Socket '/var/lib/mysql/mysql.sock' (2)
is somebody can help me to figure out?
|
|
|
10-11-2006, 01:45 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
$10 says you've not started the mysql service.
|
|
|
10-11-2006, 01:58 PM
|
#3
|
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep:
|
Code:
service mysql start
or
Code:
/etc/init.d/mysql start
I recall either of those should work..basically they're the same. But if you want mysql to run every time you boot, you'll have to alter your runlevel config.
|
|
|
10-11-2006, 04:15 PM
|
#4
|
Member
Registered: Nov 2005
Location: Worcestershire,UK
Distribution: Used nearly all but now just using Lubuntu 18.04lts and 20.04 lts
Posts: 94
Rep:
|
b0uncer : don't you mean service mysqld (with a 'd')?
I'm running FC5 and mysql isn't a recognised service.
(FYI).
|
|
|
10-12-2006, 11:26 AM
|
#5
|
LQ Newbie
Registered: Oct 2006
Location: USA
Distribution: Fedora 3, 4, 5
Posts: 6
Original Poster
Rep:
|
same mysql error
I tried both,
Code:
service mysql start
and
Code:
/etc/init.d/mysql start
unfortunately it didn't work and it gives me the same error. Do you mean instead of ? What is the difference between mysql and mysqld?
|
|
|
10-13-2006, 07:50 PM
|
#6
|
Member
Registered: Nov 2005
Location: Worcestershire,UK
Distribution: Used nearly all but now just using Lubuntu 18.04lts and 20.04 lts
Posts: 94
Rep:
|
OK.
Try this :
Quote:
/etc/rc.d/init.d/mysqld start
|
If this does not work, what error is it giving ?
Try : What do you get ?
|
|
|
10-13-2006, 08:06 PM
|
#7
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Look for /usr/share/doc/packages/mysql/manual.pdf or /usr/share/doc/packages/mysql/manual.ps. There are a few things that you need to do after installing mysql to secure it. The manual also has trouble shooting information.
After starting the service you will want to use mysqladmin to give yourself the priviledges you need. Later, you will normally start mysql like:
mysql -u username -p
<password>
Good Luck.
|
|
|
10-13-2006, 08:12 PM
|
#8
|
Member
Registered: Nov 2005
Location: Worcestershire,UK
Distribution: Used nearly all but now just using Lubuntu 18.04lts and 20.04 lts
Posts: 94
Rep:
|
jschiwal : I think parthava has not got the mysqld to start , so he won't be able to use the admin tools yet. Unless we've got past this point
Quote:
ERROR 2002 (HY000): Can't connect to local MySQL Server through Socket '/var/lib/mysql/mysql.sock' (2)
|
|
|
|
10-14-2006, 07:54 AM
|
#9
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
I guess I was jumping ahead a bit. His syntax to start the MySQL monitor didn't look quite right.
He could try (for testing purposes) starting mysql with the command "sudo -u mysql /usr/bin/mysql_safe &"
And then run "mysqladmin -u root -p <rootpassword> status" to verify whether it started or not.
sudo /sbin/chkconfig -l mysql will list the runlevels that mysql should run under. He could use this command to automatically start the server when he boots the machine, assuming the service will start.
|
|
|
10-16-2006, 04:52 PM
|
#10
|
LQ Newbie
Registered: Oct 2006
Location: USA
Distribution: Fedora 3, 4, 5
Posts: 6
Original Poster
Rep:
|
Hi The problem has been fixed. I went to /etc/rc.d/init.d/ and then as a root user, I gave the command and that's how I started the daemon. Thank you very much for all your help. I really appreciate it. Thanks to linux community.
|
|
|
10-16-2006, 05:00 PM
|
#11
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
no suprise there then... it's *always* that, as you would have seen had you scrolled to the bottom of the page to see all the identical threads.
|
|
|
10-17-2006, 05:28 AM
|
#12
|
LQ Newbie
Registered: Feb 2006
Posts: 10
Rep:
|
i have found a web site for learning mysql, and want to share it with this cummunity web site address is
http://adminschoice.sytes.net
|
|
|
All times are GMT -5. The time now is 01:36 AM.
|
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
|
|