安装mysql时出错

由 eaux 在 04-10-2003 11:08 发表:

安装mysql时出错

[root@rhlin /]#groupadd mysql

[root@rhlin /]#useradd -g mysql mysql

[root@rhlin /]#cd /usr/local/src

[root@rhlin src]#tar zxvf mysql-3.23.56.tar.gz

[root@rhlin src]#cd /usr/local/src/mysql-3.23.56

[root@rhlin mysql-3.23.56]#./configure --prefix=/usr/local/mysql

[root@rhlin mysql-3.23.56]#make

[root@rhlin mysql-3.23.56]#make install

[root@rhlin mysql-3.23.56]#make clean

以上都顺利完成,然后执行下面这个脚本时出错

[root@rhlin mysql-3.23.56]#cd scripts

[root@rhlin scripts]# mysql_install_db

Preparing db table

Preparing host table

Preparing user table

Preparing func table

Preparing tables_priv table

Preparing columns_priv table

Installing all prepared tables

/usr/local/libexec/mysqld: Fatal error: Can't find messagefile

'/usr/local/share/mysql/english/errmsg.sys'

Installation of grant tables failed!

Examine the logs in /usr/local/var for more information.

You can also try to start the mysqld daemon with:

/usr/local/libexec/mysqld --skip-grant &

You can use the command line tool

/usr/local/bin/mysql to connect to the mysql

database and look at the grant tables:

shell> /usr/local/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/var that may be helpful.<br

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus