centos Linux 系统下安装mysql时,执行scripts/mysql_install_db --user=mysql 报错

在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@qs-dmm-rh2 ~]# uname -a

Linux qs-dmm-rh2 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:43 EDT 2010 i686 i686 i386 GNU/Linux

[root@qs-xezf-db2 ~]# uname -a

Linux qs-xezf-db2 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux


你可能感兴趣的:(Linux)