This is a discussion on error in starting mysql server ... within the MySQL Database forums, part of the Database Forums category; Hi everyone :) I am using linux ( Fedora Core 6 ) as my OS. When i tried to start the mysql server, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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 ================== |
|
|||
|
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. |
|
|||
|
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 :) |