linux版本:CentOS_5.2mysql版本:mysql-5.1.34.tar.gz(源码安装包)我参照安装文档(INSTALL-SOURCE),操作步骤如下:1>groupaddmysql2>useradd-gmysqlmysql3>tar-zxvfmysql-5.1.34.tar.g...
linux版本 :CentOS_5.2 mysql版本 :mysql-5.1.34.tar.gz (源码安装包) 我参照安装文档(INSTALL-SOURCE),操作步骤如下: 1 > groupadd mysql 2 > useradd -g mysql mysql 3 > tar -zxvf mysql-5.1.34.tar.gz 4 > cd mysql-5.1.34 5 > ./configure --prefix=/opt/lamp/mysql5 6 > make 7 > make install 8 > cp support-files/my-medium.cnf /etc/my.cnf 9 > cd /opt/lamp/mysql5 10 > chown -R mysql . 11 > chgrp -R mysql . 12 > bin/mysql_install_db --user=mysql 13 > chown -R root . 14 > chown -R mysql var 15 > bin/mysqld_safe --user=mysql & ======================================================================== 每次执行到上面第12不的时候总是报错,错误信息如下: [root@localhost mysql5]# bin/mysql_install_db --user=mysql Installing MySQL system tables... 090511 17:34:55 [ERROR] /opt/lamp/mysql5/libexec/mysqld: unknown option '--skip-federated' 090511 17:34:55 [ERROR] Aborting 090511 17:34:55 [Note] /opt/lamp/mysql5/libexec/mysqld: Shutdown complete Installation of system tables failed! Examine the logs in /opt/lamp/mysql5/var for more information. You can try to start the mysqld daemon with: shell> /opt/lamp/mysql5/libexec/mysqld --skip-grant & and use the command line tool /opt/lamp/mysql5/bin/mysql to connect to the mysql database and look at the grant tables: shell> /opt/lamp/mysql5/bin/mysql -u root mysql mysql> show tables Try 'mysqld --help' if you have problems with paths. Using --log gives you a log in /opt/lamp/mysql5/var that may be helpful. The latest information about MySQL is available on the web at http://www.mysql.com/. 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 mailing us! And remember, if you do mail us, you MUST use the /opt/lamp/mysql5/bin/mysqlbug script! ============================================================== 我对12步骤的错误信息不理解,不知道到底哪里做错了,然后继续按照安装文档执行下面的安装。。。 最后报出的错误信息如下: [root@localhost mysql5]# bin/mysqld_safe --user=mysql & [1] 21884 [root@localhost mysql5]# 090511 17:38:40 mysqld_safe Logging to '/opt/lamp/mysql5/var/localhost.err'. 090511 17:38:40 mysqld_safe Starting mysqld daemon with databases from /opt/lamp/mysql5/var 090511 17:38:40 mysqld_safe mysqld from pid file /opt/lamp/mysql5/var/localhost.pid ended [1]+ Done bin/mysqld_safe --user=mysql ++++++++++++++++++++++++++++++ 新手,刚刚自学linux,对于我的安装过程网上也找了很久,实在不得其解,希望前辈们帮帮我。 小弟我不胜感激。。先谢了
展开