Windows 平台上的 InnoDB

出错详解:

E:/LAMP/mysql/bin>mysqld-max-nt --standalone --console
InnoDB: Error: you must set the log group home dir in my.cnf the
InnoDB: same as log arch dir.
020410 23:52:53 Can't init databases
解释:两个目录必须相同!


E:/LAMP/mysql/bin>mysqld-max-nt --standalone --console
InnoDB: Operating system error number 3 in a file operation.
InnoDB: See http://www.innodb.com/ibman.html for installation help.
InnoDB: The error means the system cannot find the path specified.
InnoDB: In installation you must create directories yourself, InnoDB
InnoDB: does not create them.
InnoDB: File name d:/data/mysqldbf/ibdata/ibdata1
InnoDB: Cannot continue operation.
解释:目录没有建立,必须手工用 mkdir 先!



E:/LAMP/mysql/bin>mysqld-max-nt --standalone --console
InnoDB: The first specified data file d:/data/mysqldbf/ibdata/ibdata1 did not ex
ist:
InnoDB: a new database to be created!
020410 23:54:44 InnoDB: Setting file d:/data/mysqldbf/ibdata/ibdata1 size to 30
0 MB
InnoDB: Database physically writes the file full: wait...
020410 23:55:11 InnoDB: Log file c:/iblogs/ib_logfile0 did not exist: new to be
created
InnoDB: Setting log file c:/iblogs/ib_logfile0 size to 30 MB
InnoDB: Database physically writes the file full: wait...
020410 23:55:14 InnoDB: Log file c:/iblogs/ib_logfile1 did not exist: new to be
created
InnoDB: Setting log file c:/iblogs/ib_logfile1 size to 30 MB
InnoDB: Database physically writes the file full: wait...
020410 23:55:17 InnoDB: Log file c:/iblogs/ib_logfile2 did not exist: new to be
created
InnoDB: Setting log file c:/iblogs/ib_logfile2 size to 30 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
020410 23:55:27 InnoDB: Started
020410 23:55:28 mysqld-max-nt: Table 'mysql.func' doesn't exist
020410 23:55:28 Can't open mysql/func table
mysqld-max-nt: ready for connections

解释:成功了!

把原先的 MyISAM 表全部转换成了 InnoDB :
1.mysqldump --opt dbname>dbname.sql
2.mysqladmin drop dbname
3.mysqladmin create dbname
4.修改 dbname.sql ,首行加
set autocommit=0;
末行加
commit;
并把所有的 type=myisam 修改为 type=innodb 。
5.mysql dbname < dbname.sql
6.重新建立相关的索引,以提高性能。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值