Unix Technical Forum

error in starting mysql server ...

This is a discussion on error in starting mysql server ... within the MySQL forums, part of the Database Server Software category; --> Hi everyone I am using linux ( Fedora Core 6 ) as my OS. When i tried to start ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 11:27 AM
thushianthan15@gmail.com
 
Posts: n/a
Default error in starting mysql server ...


Hi everyone

I am using linux ( Fedora Core 6 ) as my OS. When i
tried to start the mysql server, by typing the following command :

# /etc/init.d/mysqld start

it displayed the following error message:

" Initializing 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 "

i tried with the ' --force' option. But it didnt work.

Any suggestions ? Please help me
to solve this problem.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 11:27 AM
Jerry Stuckle
 
Posts: n/a
Default Re: error in starting mysql server ...

thushianthan15@gmail.com wrote:
> Hi everyone
>
> I am using linux ( Fedora Core 6 ) as my OS. When i
> tried to start the mysql server, by typing the following command :
>
> # /etc/init.d/mysqld start
>
> it displayed the following error message:
>
> " Initializing 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 "
>
> i tried with the ' --force' option. But it didnt work.
>
> Any suggestions ? Please help me
> to solve this problem.
>


What do you get when you go to a command line and type

ping localhost

You should get returns from 127.0.0.1. If not, your tcp/ip
configuration is screwed up. Check hour /etc/hosts file.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 11:27 AM
Charles Polisher
 
Posts: n/a
Default Re: error in starting mysql server ...

On 2007-09-03, thushianthan15@gmail.com <thushianthan15@gmail.com> wrote:
>
> Hi everyone
>
> I am using linux ( Fedora Core 6 ) as my OS. When i
> tried to start the mysql server, by typing the following command :
>
> # /etc/init.d/mysqld start
>
> it displayed the following error message:
>
> " Initializing 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 "
>
> i tried with the ' --force' option. But it didnt work.
>
> Any suggestions ? Please help me
> to solve this problem.


Check the output of the hostname command. Possibly /etc/HOSTNAME
is blank, or you've got some trouble with your startup scripts?
On my FC5 system, /etc/rc.d/sysinit line 16 configures the hostname
to be "localhost" if nothing else has been set.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 11:27 AM
thushianthan15@gmail.com
 
Posts: n/a
Default Re: error in starting mysql server ...

On Sep 4, 3:32 am, Charles Polisher <cpol...@nonesuch.com> wrote:
> On 2007-09-03, thushiantha...@gmail.com <thushiantha...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi everyone

>
> > I am using linux ( Fedora Core 6 ) as my OS. When i
> > tried to start the mysql server, by typing the following command :

>
> > # /etc/init.d/mysqld start

>
> > it displayed the following error message:

>
> > " Initializing 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 "

>
> > i tried with the ' --force' option. But it didnt work.

>
> > Any suggestions ? Please help me
> > to solve this problem.

>
> Check the output of the hostname command. Possibly /etc/HOSTNAME
> is blank, or you've got some trouble with your startup scripts?
> On my FC5 system, /etc/rc.d/sysinit line 16 configures the hostname
> to be "localhost" if nothing else has been set.- Hide quoted text -
>
> - Show quoted text -


Thank you very much for all your replies

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com