mysql_install_db Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adam Smith

    #1

    mysql_install_db Problem

    Doing the post-install on mysql :

    /usr/local/bin/mysql_install_d b ===>

    Neither host 'econ' and 'localhost' could not be looked up with
    /usr/local/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

    at the shell prompt ===>

    resolveip econ.com

    IP address of econ.com is 127.0.0.1

    But

    cat /etc/hosts

    # $FreeBSD: src/etc/hosts,v 1.11.2.4 2003/02/06 20:36:58 dbaker
    Exp $
    #
    # Host Database
    #
    127.0.0.1 localhost
    169.39.75.81 econ.com

    How should I correct this?

    The script does a

    hostname=`/bin/hostname -s`

    which returns econ, hostname stripped of the extension and creates it as
    the env variable
    but then does a hostname validity check with

    resolved=`$bind ir/resolveip $hostname 2>&1`

    So it is doing

    resolved=`/path/to/resolveip econ 2>&1` rather than
    resolved=`/path/to/resolveip econ.com 2>&1`

    Hence the error message

    Thanks
Working...