按照文档一步步来的,到了这一步出现这样的报错,前面 chown -R mysql:mysql /data/mysql
完成后,ls -l 查看属主属组时是这样的:
drwxr-x---. 4 503 users 4096 Oct 7 2009 data
到了运行/mysql_install_db的时候就这样了
[root@localhost mysql]# ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql
./scripts/mysql_install_db: ./bin/my_print_defaults: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
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
完成后,ls -l 查看属主属组时是这样的:
drwxr-x---. 4 503 users 4096 Oct 7 2009 data
到了运行/mysql_install_db的时候就这样了
[root@localhost mysql]# ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql
./scripts/mysql_install_db: ./bin/my_print_defaults: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
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
编辑回复