出错提示这样的: --------------------------------------------------------------------- [root@localhost mysql]# scripts/mysql_install_db scripts/mysql_install_db:line1:./bin/my_print_defaults:cannot execute binary file Neither host 'localhost' nor 'localhost' could be looked up whith ./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 [root@localhost mysql]# ----------------------------------------------------------------------- 可是我已经运行hostname命令了,它告诉结果:localhost 我也用了-- force。可是也不能装。
hostname,换了。wen.com也不行的。提示变成。 [root@localhost mysql]# scripts/mysql_install_db scripts/mysql_install_db:line1:./bin/my_print_defaults:cannot execute binary file Neither host 'wen.com' nor 'localhost' could be looked up whith ./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 [root@localhost mysql]#
不好意思,误导你了.mysql不用编译就可以.mv /usr/local/mysql/mysql4/mysql-standard-4.1.13-unknown-linux-gnu-ia64-rhas21 /usr/local/mysql cd /usr/local/mysql ./scripts/mysql_install_db --force
hostname test.com
出错提示这样的:
---------------------------------------------------------------------
[root@localhost mysql]# scripts/mysql_install_db
scripts/mysql_install_db:line1:./bin/my_print_defaults:cannot execute binary file
Neither host 'localhost' nor 'localhost' could be looked up whith
./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
[root@localhost mysql]#
-----------------------------------------------------------------------
可是我已经运行hostname命令了,它告诉结果:localhost
我也用了-- force。可是也不能装。
换成其它的
[root@localhost mysql]# scripts/mysql_install_db
scripts/mysql_install_db:line1:./bin/my_print_defaults:cannot execute binary file
Neither host 'wen.com' nor 'localhost' could be looked up whith
./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
[root@localhost mysql]#
cd /usr/local/mysql
./scripts/mysql_install_db --force