can't start mysqld--failed

  • biruru
  • Novice
  • Novice
  • No Avatar
  • Joined: May 06, 2006
  • Posts: 31
  • Loc: Toronto
  • Status: Offline

Post November 12th, 2006, 4:38 pm

Hi i have a problem, don't knwo what's wrong but when i execute the following

[root@localhost ~]# /sbin/service mysqld start
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
[FAILED]
it failed, what is wrong, i didn't edit localhost or anything
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 12th, 2006, 4:38 pm

  • vijayan
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Jul 31, 2006
  • Posts: 52
  • Loc: india
  • Status: Offline

Post November 12th, 2006, 9:35 pm

Hi biruru,

You try like it that enter your hostname as well as ipadders in /etc/hosts file.

open vi /etc/hosts
enter the line i.e.
(ipaddress) (hostsname of your machine)
and save & exit .
now try it .
OK
  • biruru
  • Novice
  • Novice
  • No Avatar
  • Joined: May 06, 2006
  • Posts: 31
  • Loc: Toronto
  • Status: Offline

Post November 14th, 2006, 9:57 pm

thanks vijayan, your right, my hosts file was the problem it had an invalid entry to begin with. ::1 instead of 127.0.0.1
  • vijayan
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Jul 31, 2006
  • Posts: 52
  • Loc: india
  • Status: Offline

Post November 14th, 2006, 11:26 pm

ok

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 108 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.