mysql ib日志查看_mysql如何使用事物日志ib

满意答案

,查看Mysqld(/var/log/mysqld.log)日志,发现以下错误:

InnoDB: Error: log file /usr/local/mysql/data/ib_logfile0 is of different size 0

5242880 bytes

InnoDB: than specified in the .cnf file 0 104857600 bytes!

030826 1:42:15 Can't init databases

030826 1:42:15 Aborting

2,解决办法

"

If you want to change the number or the size of your InnoDB log files, you

have to shut down MySQL and make sure that it shuts down without errors.

Then copy the old log files into a safe place just in case something went

wrong in the shutdown and you will need them to recover the database. Delete

then the old log files from the log file directory, edit my.cnf, and start

MySQL again. InnoDB will tell you at the startup that it is creating new log

files.

"

在你修改my.cnf的innodb_log_file_size参数前,请先停止mysql服务程序的运行(mysql的停止没有出现任何错误),并把/var/lib/mysql目录下的ib_logfile0、ib_logfile1、ib_logfile2等之类的文件移除到一个安全的地方(旧日志文件的保留是为了防止意外的出现),以便Mysql重启后可以将新的ib_logfile0之类日志文件生成到/var/lib/mysql目录下。如果没有什么意外,旧的日志文件可以删除。

00分享举报

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值