安装MYSQL过程中,在初始化数据库时报错:
[root@loacalhost mysql]#./scripts/mysql_install_db --user=mysql --datadir=/data/mysql
./scripts/mysql_install_db: ./bin/mysql_print_defaults: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Neither host 'hostname.localdomain' nor 'localhost' counld 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
[root@localhost mysql]#hostname
localhost.localdomain
求大神给点详细的解决方案。。谢谢
[root@loacalhost mysql]#./scripts/mysql_install_db --user=mysql --datadir=/data/mysql
./scripts/mysql_install_db: ./bin/mysql_print_defaults: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Neither host 'hostname.localdomain' nor 'localhost' counld 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
[root@localhost mysql]#hostname
localhost.localdomain
求大神给点详细的解决方案。。谢谢
编辑回复