小白按照网上教程下载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
安装的脚本内容不全
参考自:
mysql server的安装及自定义脚本 http://www.data.5helpyou.com/article127.html
你是怎么解压的?最好用命令解压。
楼上的参考链接很完整,很不错
mysql server的安装及自定义脚本 http://www.data.5helpyou.com/article127.html
多谢楼上的回答 已经搞定了 是因为版本不对 我64位的linux装的-mysql-standard-5.0.27-linux-i686-glibc23.tar.gz包 是32位的 重新下了64位的包就ok了! 谢谢各位!