LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1186|回复: 4

mysql_install_db失败

[复制链接]
发表于 2006-12-8 17:32:19 | 显示全部楼层 |阅读模式
./configure --prefix=/VDS/APPS/mysql --with-unix-socket-path=/tmp/mysql.sock --localstatedir=/VDS/APPS/mysql/bin

make

make install

cd /VDS/APPS/mysql

ghost mysql # bin/mysql_install_db
mkdir: `/VDS/APPS/mysql/bin/mysql' exists but is not a directory
Installing all prepared tables
061209  1:13:19 [ERROR] /VDS/APPS/mysql/libexec/mysqld: Can't find file: './mysql/db.frm' (errno: 20)
061209  1:13:19 [ERROR] /VDS/APPS/mysql/libexec/mysqld: Can't find file: './mysql/db.frm' (errno: 20)
061209  1:13:19 [ERROR] /VDS/APPS/mysql/libexec/mysqld: Can't find file: './mysql/db.frm' (errno: 20)
061209  1:13:19 [ERROR] /VDS/APPS/mysql/libexec/mysqld: Can't find file: './mysql/db.frm' (errno: 20)
061209  1:13:19 [ERROR] /VDS/APPS/mysql/libexec/mysqld: Can't find file: './mysql/user.frm' (errno: 20)
061209  1:13:19 [ERROR] /VDS/APPS/mysql/libexec/mysqld: Can't find file: './mysql/user.frm' (errno: 20)
061209  1:13:19 [ERROR] /VDS/APPS/mysql/libexec/mysqld: Can't find file: './mysql/user.frm' (errno: 20)
061209  1:13:19 [ERROR] /VDS/APPS/mysql/libexec/mysqld: Can't find file: './mysql/user.frm' (errno: 20)
061209  1:13:19 [ERROR] /VDS/APPS/mysql/libexec/mysqld: Can't find file: './mysql/user.frm' (errno: 20)
061209  1:13:19 [ERROR] /VDS/APPS/mysql/libexec/mysqld: Can't find file: './mysql/user.frm' (errno: 20)
061209  1:13:19 [ERROR] /VDS/APPS/mysql/libexec/mysqld: Can't find file: './mysql/user.frm' (errno: 20)
061209  1:13:19 [ERROR] /VDS/APPS/mysql/libexec/mysqld: Can't find file: './mysql/user.frm' (errno: 20)
Fill help tables

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:
/VDS/APPS/mysql/bin/mysqladmin -u root password 'new-password'
/VDS/APPS/mysql/bin/mysqladmin -u root -h ghost password 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd /VDS/APPS/mysql ; /VDS/APPS/mysql/bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /VDS/APPS/mysql/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

ghost mysql # mkdir bin/mysql
mkdir: `bin/mysql' exists but is not a directory
#无法在/VDS/APPS/mysql/bin/下创建mysql目录 ,当前用户是root
 楼主| 发表于 2006-12-11 14:34:45 | 显示全部楼层
mysql的问题,没人知道吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-11 14:50:48 | 显示全部楼层
ghost mysql # cat /var/log/mysql/mysqld.err
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
061025 22:14:46  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
061025 22:14:49  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
061025 22:14:51  InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
061025 22:14:54  InnoDB: Started; log sequence number 0 0
/usr/sbin/mysqld: ready for connections.
Version: '4.1.21-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Gentoo Linux mysql-4.1.21
061026  0:59:32 [Note] /usr/sbin/mysqld: Normal shutdown

061026  0:59:33  InnoDB: Starting shutdown...
061026  0:59:35  InnoDB: Shutdown completed; log sequence number 0 43677
061026  0:59:35 [Note] /usr/sbin/mysqld: Shutdown complete

061208 23:01:24  InnoDB: Started; log sequence number 0 43677
/usr/sbin/mysqld: ready for connections.
Version: '4.1.21-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Gentoo Linux mysql-4.1.21
061208 23:08:22 [Note] /usr/sbin/mysqld: Normal shutdown

061208 23:08:22  InnoDB: Starting shutdown...
061208 23:08:24  InnoDB: Shutdown completed; log sequence number 0 43710
061208 23:08:24 [Note] /usr/sbin/mysqld: Shutdown complete
回复 支持 反对

使用道具 举报

发表于 2006-12-12 11:13:44 | 显示全部楼层
为什么不用 emerge mysql-XXX(你的版本) --config ???
回复 支持 反对

使用道具 举报

发表于 2006-12-12 11:14:50 | 显示全部楼层
你自己编译?怎么不用 emerge mysql 来安装?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表