LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-04-2005, 01:22 PM   #1
Hirszu
Member
 
Registered: Mar 2005
Distribution: Ubuntu 7.10
Posts: 40

Rep: Reputation: 15
Can't rum MySQL on FC4


Hey, I can't run MySQL that comes with Fedora 4. If I run it through the Services panel, it shows:

Code:
mysqld failed. The error was: Initialization MySQL database:  Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
/usr/bin/resolveip
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]
Can you help me?
 
Old 12-04-2005, 03:16 PM   #2
spookt
LQ Newbie
 
Registered: Dec 2003
Location: North East UK
Distribution: Red Hat / Fedora
Posts: 11

Rep: Reputation: 0
Hmm, what is in /etc/hosts ?

Do you have a line like this ?

Code:
127.0.0.1               myhost localhost.localdomain localhost
Did you try the resolveip command from the command line to see if any errors are returned ?

Code:
/usr/bin/resolveip localhost
 
Old 12-05-2005, 02:38 PM   #3
Hirszu
Member
 
Registered: Mar 2005
Distribution: Ubuntu 7.10
Posts: 40

Original Poster
Rep: Reputation: 15
My /etc/hosts is empty... Maybe that's the problem? and when I type
Code:
resolveip localhost
it gives me
Code:
resolveip: Unable to find hostid for 'localhost': try again
Is the /etc/hosts file the problem?
 
Old 12-05-2005, 06:34 PM   #4
shams
Member
 
Registered: Jan 2004
Posts: 535

Rep: Reputation: 30
add this line to /etc/hosts:
127.0.0.1 localhost.localdomain localhost
 
Old 12-06-2005, 02:07 PM   #5
Hirszu
Member
 
Registered: Mar 2005
Distribution: Ubuntu 7.10
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for help! It works fine now.
 
  


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
MySQL 4.1 @ FC4 problem t3ch Linux - Software 7 06-16-2005 06:42 AM
can't read and install fram CD rum Haroon Linux - Software 3 09-11-2004 03:07 PM
how do i rum my program recall555 Linux - Software 7 01-24-2004 04:09 PM
how to rum java on linux and set path for the same mita_majumdar Linux - Newbie 2 06-02-2003 12:50 AM
how to rum java on linux and set path for the same mita_majumdar Linux - Newbie 1 05-26-2003 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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