Fedora Linux Support Community & Resources Center
  #1  
Old 2nd August 2005, 09:21 PM
timmy Offline
Registered User
 
Join Date: Aug 2005
Posts: 3
mySQL error

HI. I'm using Fedora Core 4, and I did a "everything" installtion. I was following this tutorial:
http://stanton-finley.net/fedora_cor...notes.html#Web

But when I try to install mySQL, I get this error:

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



Any idea's why it's not installing?

Any help apreaciated(please keep in mind that i'm a newbie with Linux, so I may not understand some things that you tell me)
Reply With Quote
  #2  
Old 3rd August 2005, 05:12 AM
BrokenBrick Offline
Registered User
 
Join Date: Feb 2005
Posts: 13
Quote:
Originally Posted by timmy
HI. I'm using Fedora Core 4, and I did a "everything" installtion. I was following this tutorial:
http://stanton-finley.net/fedora_cor...notes.html#Web

But when I try to install mySQL, I get this error:

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



Any idea's why it's not installing?

Any help apreaciated(please keep in mind that i'm a newbie with Linux, so I may not understand some things that you tell me)

Did you try just using apt-get to install MySQL? This should do fine, as long as you don't already have MySQL
Reply With Quote
  #3  
Old 3rd August 2005, 05:54 AM
HACKERS PAL's Avatar
HACKERS PAL Offline
Registered User
 
Join Date: Jul 2005
Location: Palestine
Age: 23
Posts: 8
Try To Type

Code:
service mysqld start
in the terminal

Regards,
Reply With Quote
  #4  
Old 3rd August 2005, 06:18 AM
BrokenBrick Offline
Registered User
 
Join Date: Feb 2005
Posts: 13
I am having this problem as well. In your case I'd say you should use
Code:
yum install mysql
In my case, mysql.sock does not exist in my system, so I am going to have to post somewhere for help, or else attempt to compile mysql from source on top of my package install, which might be a bad idea, but it appears it might be my only option
Reply With Quote
  #5  
Old 3rd August 2005, 12:22 PM
incous Offline
Registered User
 
Join Date: May 2005
Posts: 5
Quote:
Originally Posted by BrokenBrick
I am having this problem as well. In your case I'd say you should use
Code:
yum install mysql
In my case, mysql.sock does not exist in my system, so I am going to have to post somewhere for help, or else attempt to compile mysql from source on top of my package install, which might be a bad idea, but it appears it might be my only option
it's not the problem. he try to run mysql on a pc without mysqld running.
to prevent this, let's install mysql-server first
Reply With Quote
  #6  
Old 3rd August 2005, 01:45 PM
timmy Offline
Registered User
 
Join Date: Aug 2005
Posts: 3
Quote:
Originally Posted by BrokenBrick
Did you try just using apt-get to install MySQL? This should do fine, as long as you don't already have MySQL
Sorry, but I don't know what your talking about ...


Quote:
Originally Posted by incous
it's not the problem. he try to run mysql on a pc without mysqld running.
to prevent this, let's install mysql-server first
I think I enabled mysqld by going to Desktop >System Settings > Server Settings > Services
and put putting a checkmark on mysqld.
Reply With Quote
  #7  
Old 3rd August 2005, 03:17 PM
DRE.ORGY.NET's Avatar
DRE.ORGY.NET Offline
Registered User
 
Join Date: Nov 2004
Location: Sydney, Australia
Posts: 210
Last time I installed mysql the mysqld did not start due to the databases not being created correctly. you might need to run mysqld_install_db first. That should set up the initial mysql database and allow you to start mysqld (you can do this manually if by typing service mysqld start in a console as root)
Reply With Quote
  #8  
Old 4th August 2005, 12:32 AM
timmy Offline
Registered User
 
Join Date: Aug 2005
Posts: 3
Thanks guys, it works now

All of your comments helped me, thanks!
Reply With Quote
  #9  
Old 23rd April 2007, 11:59 AM
incous Offline
Registered User
 
Join Date: May 2005
Posts: 5
Quote:
Originally Posted by timmy
Sorry, but I don't know what your talking about ...

I think I enabled mysqld by going to Desktop >System Settings > Server Settings > Services
and put putting a checkmark on mysqld.
It's good when you have done. When you check this, it's just enable the firewall not to block MySQL port (3306). It's firewall setting.
You must install mysqld and initial the very first DBs follow instruction.

I see that Fedora is not good at packages management.
It's more easier if you use a Debian-based distro (ex. Ubuntu).
Reply With Quote
  #10  
Old 23rd April 2007, 09:02 PM
Mulciber Offline
Registered User
 
Join Date: Apr 2007
Posts: 4
I had this same problem took me the whole day...and still couldnt figure it out. Every time I tried to start mysql or restart in via command line it wouldnt work. I got the same error, but once I did it via the desktop it worked fine!
Reply With Quote
  #11  
Old 24th April 2007, 05:16 AM
incous Offline
Registered User
 
Join Date: May 2005
Posts: 5
you should check the mysql server is running or not by command
netstat -nat | grep LISTEN
and check if port 3306 is listening
Reply With Quote
  #12  
Old 24th April 2007, 10:29 PM
Mulciber Offline
Registered User
 
Join Date: Apr 2007
Posts: 4
the problem was that when I checked to see if it was working...I got the same error lol
Reply With Quote
  #13  
Old 25th April 2007, 05:06 PM
swantucky Offline
Registered User
 
Join Date: Nov 2006
Posts: 5
cd /usr/local/mysql/share/mysql
mysql.server start

This starts the mysql.server running and I can run mysql from shell and enter things, but when I try to access anything in the MySQL server from Webmin, I get the same mysql.socket errors. mysqld doesn't show up as a service either, so I can't start it from shell prompt. I can't locate mysld_install_db anywhere on my fc6 box; anyone know where I go with this?
Reply With Quote
  #14  
Old 26th April 2007, 04:07 AM
Mulciber Offline
Registered User
 
Join Date: Apr 2007
Posts: 4
Try going to the desktop and check your services, it should have something like mysqld...make sure that is checked out make sure you save it....
Reply With Quote
Reply

Tags
error, mysql

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP/MySQL error.... DaFoot Servers & Networking 2 22nd June 2009 02:22 PM
MySQL gives me the fallowing error "ERROR 1049 (42000): Unknown database 'start'" Rockafella Using Fedora 2 2nd July 2006 08:17 AM
PHP and MySQL error jerox Using Fedora 7 5th September 2005 02:13 AM


Current GMT-time: 11:27 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat