|
[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.
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 is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/local/bin/mysqlbug script!
[root@rhlin scripts]# |
|