Bug #58654 mysql_install_db : resolveip failed
Submitted: 2 Dec 2010 12:04 Modified: 2 Jan 2011 12:47
Reporter: Anil Alpati Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.1.45 OS:Linux
Assigned to: CPU Architecture:Any

[2 Dec 2010 12:04] Anil Alpati
Description:
I am trying to install mysql5.1.45 (32 bit) in ubuntu10.04 - 64bit

I have strucked in scripts/mysql_install_db scenario - 

Neither host 'localhost' nor 'localhost'

How to repeat:
root@localhost:/usr/local/mysql# scripts/mysql_install_db --basedir="/usr/local/mysql" --user=mysql
scripts/mysql_install_db: 244: /usr/local/mysql/bin/my_print_defaults: not found
Neither host 'localhost' nor 'localhost' could be looked up with
/usr/local/mysql/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
root@localhost:/usr/local/mysql# scripts/mysql_install_db --basedir="/usr/local/mysql" --force --user=mysql
scripts/mysql_install_db: 244: /usr/local/mysql/bin/my_print_defaults: not found
Installing MySQL system tables...
scripts/mysql_install_db: 418: /usr/local/mysql/bin/mysqld: not found

Installation of system tables failed!  Examine the logs in
./data for more information.

You can try to start the mysqld daemon with:

    shell> /usr/local/mysql/bin/mysqld --skip-grant &

and use the command line tool /usr/local/mysql/bin/mysql
to connect to the mysql database and look at the grant tables:

    shell> /usr/local/mysql/bin/mysql -u root mysql
    mysql> show tables

Try 'mysqld --help' if you have problems with paths.  Using --log
gives you a log in ./data that may be helpful.

Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS.  Another information source are the
MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us!  And remember, if
you do mail us, you MUST use the /usr/local/mysql/scripts/mysqlbug script!
[2 Dec 2010 12:07] Anil Alpati
I have done the changed all the ways - 

Changed config file - /etc/hosts

root@localhost:/#  cat /etc/hosts
127.0.0.1	localhost
#192.168.0.4     localhost 

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

== changed the hostname - localhost

even then Its not working - please help me out to fix this problem-

Is that problem ubuntu 64 bit or ?
[2 Dec 2010 12:08] Susanne Ebrecht
Did you already try to execute /usr/local/mysql/bin/my_print_defaults?
Please try if it works when you first execute my_print_defaults and after that execute mysql_install_db.
[2 Dec 2010 12:09] Anil Alpati
I have done the changed all the ways - 

Changed config file - /etc/hosts

root@localhost:/#  cat /etc/hosts
127.0.0.1	localhost
#192.168.0.4     localhost 

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

== changed the hostname - localhost

even then Its not working - please help me out to fix this problem-

Is that problem ubuntu 64 bit or ?
[2 Dec 2010 12:38] Susanne Ebrecht
You need to execute:

/usr/local/mysql/bin/my_print_defaults
[2 Dec 2010 12:43] Anil Alpati
Its show 'No such file or directory'. but still file is available.

root@localhost:/usr/local/mysql# ./bin/my_print_defaults --user=mysql 
-bash: ./bin/my_print_defaults: No such file or directory
[2 Dec 2010 12:47] Susanne Ebrecht
Look if it has execute rights ...
chmod 755 might help.
[3 Jan 2011 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".