LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-29-2003, 02:25 PM   #1
Deeter
LQ Newbie
 
Registered: Jul 2003
Location: Pacifica, CA
Distribution: Red Hat 9
Posts: 7

Rep: Reputation: 0
Newbie MySQL & Hostname issues


M'kay, so I've got my RH9 box setup and running fairly well. I elected to have MySQL installed with the system when I installed so I could learn some SQL/PHP scripting. But when I try to run mysql, it retuns:

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

I did some research on that error message, both here and abroad, and found that the mysqld daemon might not be starting up at boot time. So I check out /etc/rc3.d and sure enough i've got Kxxmysqld in there, which, I assume means it's not set to start at boot time.

I then try to run ./mysqld start, which returns:

Initializing MySQL database: Sorry, the host 'Trane' could not be looked up.
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option
[FAILED]


And now I'm left completely scratching my head. Any ideas on how I may rectify this situation? Did I improperly set my hostname? I'm at a loss for ideas.
 
Old 07-29-2003, 03:23 PM   #2
godzuki
LQ Newbie
 
Registered: Jan 2003
Location: USA (Earth)
Distribution: Gentoo Linux
Posts: 16

Rep: Reputation: 0
You might want to use 'localhost' as the host name (security reasons)... else check that you have an entry in /etc/hosts for 'Trane'.

~godzuki
 
Old 07-29-2003, 08:25 PM   #3
Deeter
LQ Newbie
 
Registered: Jul 2003
Location: Pacifica, CA
Distribution: Red Hat 9
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by godzuki
You might want to use 'localhost' as the host name (security reasons)... else check that you have an entry in /etc/hosts for 'Trane'.

~godzuki
Changing the hostname back to "localhost" did the trick -- thanks!
 
  


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
Hostname change issues sfwalter Linux - Networking 1 10-29-2004 03:50 PM
Mail - Hostname issues ?? init Linux - Networking 1 08-23-2004 05:05 AM
hostname issues diwakergupta Linux - Networking 3 02-01-2004 12:44 AM
Hostname issues drxsmurf Mandriva 1 01-24-2004 01:23 PM
OpenBSD Hostname and Mail Issues R4z0r *BSD 1 11-30-2002 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:42 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