红联Linux门户
Linux帮助

超级菜鸟求救!!

发布时间:2014-11-18 17:36:27来源:红联作者:c407018907
安装SQL过程中,在初始化数据库时报错:
[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

求大神给点详细的解决方案。。
文章评论

共有 6 条评论

  1. t12345pk 于 2014-11-21 13:51:57发表:

    No such file or directory ?

    check the permissions

  2. chenhuanglin 于 2014-11-21 08:38:26发表:

    楼主可以发一份linux安装mysql吗,我网上怎么下载都不对。

  3. c407018907 于 2014-11-20 09:06:39发表:

    谢谢各位的解答。

  4. fs20090130 于 2014-11-19 16:45:07发表:

    [i=s] 本帖最后由 fs20090130 于 2014-11-19 16:47 编辑 [/i]

    这个http://www.chinaz.com/program/2008/1222/55775.shtml,mysql问题的汇总,希望对你有用,我用yum就搞定了,一路下一步的。
    另外hostname是要编辑两个文件的,不写入文件,重启之后会恢复到原来的hostname.可能还要重启系统的。

  5. 唔新 于 2014-11-19 08:45:13发表:

    对数据库不懂,帮顶下

  6. ggitfk2014 于 2014-11-19 04:18:16发表:

    先百度