Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3335442
  • 博文数量: 815
  • 博客积分: 12898
  • 博客等级: 上将
  • 技术积分: 7883
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-25 09:57
文章分类

全部博文(815)

文章存档

2014年(1)

2011年(46)

2010年(192)

2009年(121)

2008年(70)

2007年(385)

分类: BSD

2009-06-06 23:46:19

# /usr/local/mysql/bin/mysqld_safe --user=_mysql
090607 07:40:13 mysqld_safe Logging to '/data/mysql/sphinx.atyu30.org.err'.
090607 07:40:13 mysqld_safe Starting mysqld daemon with databases from /data/mysql
090607 07:40:14 mysqld_safe mysqld from pid file /data/mysql/sphinx.atu30.org.pid ended


# /usr/local/mysql/bin/mysql_install_db --user=_mysql                                                                      
Installing MySQL system tables...
090607  7:42:40 [Warning] Storage engine 'SPHINX' has conflicting typecode. Assigning value 42.
090607  7:42:40 [ERROR] /usr/local/mysql/libexec/mysqld: unknown option '--skip-federated'
090607  7:42:40 [ERROR] Aborting

090607  7:42:40 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete


Installation of system tables failed!  Examine the logs in
/data/mysql for more information.

You can try to start the mysqld daemon with:

    shell> /usr/local/mysql/libexec/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 tables

Try 'mysqld --help' if you have problems with paths.  Using --log
gives you a log in /data/mysql that may be helpful.

The latest information about MySQL is available on the web at
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

Please check all of the above before mailing us!  And remember, if
you do mail us, you MUST use the /usr/local/mysql/bin/mysqlbug script!

# /usr/local/mysql/libexec/mysqld --skip-grant &
[1] 25231
# 090607  7:43:02 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

090607  7:43:02 [ERROR] Aborting

090607  7:43:02 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete


[1] + Done (1)             /usr/local/mysql/libexec/mysqld --skip-grant
# /usr/local/mysql/libexec/mysqld --skip-grant &
[1] 4194
# 090607  7:43:26 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

090607  7:43:26 [ERROR] Aborting

090607  7:43:26 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete



==========================================================================
编辑/etc/my.cnf   

把 skip-federated  注释 掉

然后重新  初始化 数据库  mysql_install_db  --user=mysql


# /usr/local/mysql/bin/mysql_install_db --user=_mysql
Installing MySQL system tables...
090607  7:50:34 [Warning] Storage engine 'SPHINX' has conflicting typecode. Assigning value 42.
OK
Filling help tables...
090607  7:50:35 [Warning] Storage engine 'SPHINX' has conflicting typecode. Assigning value 42.
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/local/mysql/bin/mysqladmin -u root password 'new-password'
/usr/local/mysql/bin/mysqladmin -u root -h sphinx.atyu30.org password 'new-password'

Alternatively you can run:
/usr/local/mysql/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/local/mysql/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/local/mysql/bin/mysqlbug script!

The latest information about MySQL is available at
Support MySQL by buying support/licenses from

# /script/mysql.server start                                                                                              
Starting MySQL
. ERROR! Manager of pid-file quit without updating file.
# cd /usr/local/mysql/                                              
# /usr/local/mysql/bin/mysqld_safe &
[1] 25844
# 090607 07:52:08 mysqld_safe Logging to '/data/mysql/sphinx.atyu30.org.err'.
090607 07:52:08 mysqld_safe Starting mysqld daemon with databases from /data/mysql

#

# netstat -ant | grep LISTEN
tcp        0      0  *.3306                 *.*                    LISTEN

mysql> show engines;
+------------+---------+-----------------------------------------------------------+--------------+------+------------+
| Engine     | Support | Comment                                                   | Transactions | XA   | Savepoints |
+------------+---------+-----------------------------------------------------------+--------------+------+------------+
| CSV        | YES     | CSV storage engine                                        | NO           | NO   | NO         |
| SPHINX     | YES     | Sphinx storage engine 0.9.9                               | NO           | NO   | NO         |
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables | NO           | NO   | NO         |
| MyISAM     | DEFAULT | Default engine as of MySQL 3.23 with great performance    | NO           | NO   | NO         |
| MRG_MYISAM | YES     | Collection of identical MyISAM tables                     | NO           | NO   | NO         |
+------------+---------+-----------------------------------------------------------+--------------+------+------------+
5 rows in set (0.00 sec)


阅读(8927) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~