解决方案 »

  1.   

    怎么不用apt-get安装
    If you want to solve this at a later stage, restart this script
    with the --force option试过吗
      

  2.   

    添加系统对localhost的解析
    echo "127.0.0.1     localhost,localhost.localdomain" >> /etc/hosts
    echo "your ip address    localhost,localhost.locqaldomain" >> /etc/hosts
    提示已经说的很清楚了
      

  3.   

    加入了 --force 参数后,依然出错,如下:
    FATAL ERROR: Could not find ./bin/my_print_defaultsIf you compiled from source, you need to run 'make install' to
    copy the software into the correct location ready for operation.If you are using a binary release, you must either be at the top
    level of the extracted archive, or pass the --basedir option
    pointing to that location.

    根据提示,加入 basedir后,依然错误,如下:
    ******@ubuntu:~$ sudo /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --force
    /usr/local/mysql/scripts/mysql_install_db: 1: /usr/local/mysql/scripts/mysql_install_db: /usr/local/mysql/bin/my_print_defaults: not found
    Installing MySQL system tables...
    /usr/local/mysql/scripts/mysql_install_db: 403: /usr/local/mysql/scripts/mysql_install_db: /usr/local/mysql/bin/mysqld: not foundInstallation of system tables failed!  Examine the logs in
    /usr/local/mysql/data for more information.You can try to start the mysqld daemon with:    shell> /usr/local/mysql/bin/mysqld --skip-grant &and use the command line tool /usr/local/mysql/bin/mysql
    to connect to the mysql database and look at the grant tables:    shell> /usr/local/mysql/bin/mysql -u root mysql
        mysql> show tablesTry 'mysqld --help' if you have problems with paths.  Using --log
    gives you a log in /usr/local/mysql/data that may be helpful.Please consult the MySQL manual section
    'Problems running mysql_install_db', and the manual section that
    describes problems on your OS.  Another information source are the
    MySQL email archives available at http://lists.mysql.com/.Please check all of the above before submitting a bug report
    at http://bugs.mysql.com/