在centos Linux 系统下安装MySQL时,执行scripts/mysql_install_db --user=mysql
报错:sh: ./bin/my print defaults: /lib/ld-linux.so.2: bad ELF
interpreter: No such file or directory
Neither host 'guozh' 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是32位的,而系统是64 位
注:
Linux 下查看系统是32位 还是64 位的方法
uname
-a命令
[root@superz mysql]# uname -a
Linux superz 2 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:43 EDT 2010
i686 i686 i386 GNU/Linux
[root@superz
mysql]# uname -a
Linux superz 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010
x86_64 x86_64 x86_64 GNU/Linux