日期:2014-05-16  浏览次数:20672 次

在linux下安装mysql时 ./configure 出现的问题
解压后
运行:
./configure   --prefix=/usr/local/mysql5/mysql-max-5.0.22-liunx-ia64-icc-glibc23   --with-charset=utf-8

系统提示:

NOTE:   This   is   a   MySQL   binary   distribution.   It 's   ready   to   run,   you   don 't
need   to   configure   it!

To   help   you   a   bit,   I   am   now   going   to   create   the   needed   MySQL   databases
and   start   the   MySQL   server   for   you.     If   you   run   into   any   trouble,   please
consult   the   MySQL   manual,   that   you   can   find   in   the   Docs   directory.

./scripts/mysql_install_db:   line   1:   ./bin/my_print_defaults:   cannot   execute   binary   file
Neither   host   'localhost.localdomain '   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


这是什么原因造成的啊?


------解决方案--------------------
NOTE: This is a MySQL binary distribution. It 's ready to run, you don 't
need to configure it!

你下载的是编译完的版本了,不需要自己在进行编译,可以直接运行。