小白按照网上教程下载mysql-standard-5.0.27-linux-i686-icc-glibc23.tar.gz 解压安装mysql。
但是弄到执行脚本./scripts/mysql_install_db --user=mysql时报错:
错误如下: 求解决方案
./scripts/mysql_install_db: 1: ./scripts/mysql_install_db: ./bin/my_print_defaults: not found
Neither host 'xiaochao-virtual-machine' nor 'localhost' could be looked up with
./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