Chinaunix

标题: bin/mysql_install_db --user=mysql 出错! [打印本页]

作者: wxd8482    时间: 2009-02-24 12:34
标题: bin/mysql_install_db --user=mysql 出错!
[root@CH mysql]# bin/mysql_install_db --user=mysql
Installing MySQL system tables...
090204  8:17:59 [ERROR] /usr/local/webserver/mysql/libexec/mysqld: unknown option '--skip-federated'
090204  8:17:59 [ERROR] Aborting

090204  8:17:59 [Note] /usr/local/webserver/mysql/libexec/mysqld: Shutdown complete


Installation of system tables failed!  Examine the logs in
/usr/local/webserver/mysql/var for more information.

You can try to start the mysqld daemon with:

    shell> /usr/local/webserver/mysql/libexec/mysqld --skip-grant &

and use the command line tool /usr/local/webserver/mysql/bin/mysql
to connect to the mysql database and look at the grant tables:

    shell> /usr/local/webserver/mysql/bin/mysql -u root mysql
    mysql> show tables

Try 'mysqld --help' if you have problems with paths.  Using --log
gives you a log in /usr/local/webserver/mysql/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 /usr/local/webserver/mysql/bin/mysqlbug script!
作者: 枫影谁用了    时间: 2009-02-24 13:03
my.cnf文件里的--skip-federated前加进号
作者: wxd8482    时间: 2009-02-24 13:18
试下!谢谢!
作者: xxdxxd    时间: 2009-02-24 17:33
提示: 作者被禁止或删除 内容自动屏蔽
作者: 枫影谁用了    时间: 2009-02-24 17:35
原帖由 xxdxxd 于 2009-2-24 17:33 发表
最近这个问题好像很多,大家都在忙着学习MySQL呀


好多是网上搜的配置文件。。
5.1 正式版不支持这样配置了。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2