OS: Red Hat Enterprise Linux AS 4.0
MySQL: 5.0.22
以http://huang.yunsong.net/2006/install-and-configure-mysql-on-linux.html为安装指南,但运行到/opt/mysql/bin/mysqlctl start  ..........................[failed]找不到原因。

解决方案 »

  1.   

    os: Red Hat Enterprise Linux ES release 4 [root@localhost scripts]# su mysqld
    bash-3.00$ ./mysql_install_db.sh
    bash: ./mysql_install_db.sh: Permission denied
    bash-3.00$ sh mysql_install_d b.sh
    sh: mysql_install_d: No such file or directory
    bash-3.00$ sh mysql_install_db.sh
    mysql_install_db.sh: line 152: @HOSTNAME@: command not found
    WARNING: The host '' could not be looked up with resolveip.
    This probably means that your libc libraries are not 100 % compatible
    with this binary MySQL version. The MySQL daemon, mysqld, should work
    normally with the exception that host name resolving will not work.
    This means that you should use IP addresses instead of hostnames
    when specifying MySQL privileges !
    Installing all prepared tables
    090322 15:25:42 [Warning] Changed limits: max_open_files: 1024  max_connections:  1000  table_cache: 64
    Fill help tables
    090322 15:25:42 [Warning] Changed limits: max_open_files: 1024  max_connections:  1000  table_cache: 64To start mysqld at boot time you have to copy support-files/mysql.server
    to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
    To do so, start the server, then issue the following commands:
    /opt/mysql//bin/mysqladmin -u root password 'new-password'
    /opt/mysql//bin/mysqladmin -u root -h  password 'new-password'
    See the manual for more instructions.You can start the MySQL daemon with:
    cd @prefix@ ; /opt/mysql//bin/mysqld_safe &You can test the MySQL daemon with the benchs in the 'sql-bench' directory:
    cd sql-bench ; perl run-all-testsPlease report any problems with the @scriptdir@/mysqlbug script!The latest information about MySQL is available on the web at
    http://www.mysql.com
    Support MySQL by buying support/licenses at http://shop.mysql.com
    bash-3.00$