+++ This bug was initially created as a clone of Bug #213475 +++ Bug #213475 was resolved by disallowing "localhost" hostnames in mysql installs. not very nice. I encountered the problem on a clean mysql-community install and tracked it down the mysql_install_db script provided with mysql. The error message it gives is the following: Neither host 'rav' nor 'localhost' could be looked up with /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 Please note that it tries to run '/resolveip' which obviously doesnt exist. The problem lies around these lines of code: if test "$windows" -eq 0 -a "$in_rpm" -eq 0 -a "$force" -eq 0 then resolved=`$extra_bindir/resolveip $hostname 2>&1` if [ $? -ne 0 ] then resolved=`$extra_bindir/resolveip localhost 2>&1` if [ $? -ne 0 ] then .... the line resolved=`$extra_bindir/resolveip localhost 2>&1` calls /resolveip localhost 2>&1 because $extra_bindir unsets magically along the run of the script. I wasnt able to identify where that happens. If anyone has time to look into it, please do so so that we have a proper fix to #213475.
fixed in mysql-community-5.0.67