由于linux和mysql下没有人气,就转到这边来了。

解决方案 »

  1.   

    那你就重新设定一下hostname啊,不要用ip就好.
    hostname test.com
      

  2.   


    出错提示这样的:
    ---------------------------------------------------------------------
    [root@localhost mysql]# scripts/mysql_install_db
    scripts/mysql_install_db:line1:./bin/my_print_defaults:cannot execute binary file
    Neither host 'localhost' nor 'localhost' could be looked up whith 
    ./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
    我也用了-- force。可是也不能装。
      

  3.   

    hostname 不能用localhost
    换成其它的
      

  4.   

    就是第一次装及使用帽9,第一次在上面装mysql的意思,还请指点怎么装啊。以前是在win下,现在弄的我头麻了。
      

  5.   

    hostname,换了。wen.com也不行的。提示变成。
    [root@localhost mysql]# scripts/mysql_install_db
    scripts/mysql_install_db:line1:./bin/my_print_defaults:cannot execute binary file
    Neither host 'wen.com' nor 'localhost' could be looked up whith 
    ./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]#
      

  6.   

    不好意思,误导你了.mysql不用编译就可以.mv /usr/local/mysql/mysql4/mysql-standard-4.1.13-unknown-linux-gnu-ia64-rhas21 /usr/local/mysql
    cd /usr/local/mysql
    ./scripts/mysql_install_db --force