Recently, while installing MySQL, I ran into an error which complained about the
Neither host 'blahblah' nor 'localhost' could be looked up with
Please configure the 'hostname' command to return a correct
If you want to solve this at a later stage, restart this script
with the --force option
I looked a bit into the scripts/mysql_install_db script and was able to figure out what
the "real" issue was (as explained in that blog). In short, the /usr/bin/resolveip is
a non-existent command (due to incorrect path).
So, in such cases, would it be possible to print out a better error message which would
tell the users what the real problem is? Something like:
"/usr/bin/resolveip" command not found.
Make sure basedir (and other variables) point to the right location.
Tip: resolveip can be located in the bin folder of MySQL download location.
|• Suggestion : Better error message for hostname resolution error during MySQL installation||Jaikiran Pai||22 Aug|