>  기사  >  데이터 베이스  >  InnoDB: Error: log file ./ib_logfile0 is of different size 0_MySQL

InnoDB: Error: log file ./ib_logfile0 is of different size 0_MySQL

WBOY
WBOY원래의
2016-06-01 13:08:29986검색

启动WAMP Server的时候报如下的错误:

140618 23:12:32 [Note] Plugin 'FEDERATED' is disabled.140618 23:12:32 InnoDB: The InnoDB memory heap is disabled140618 23:12:32 InnoDB: Mutexes and rw_locks use Windows interlocked functions140618 23:12:32 InnoDB: Compressed tables use zlib 1.2.3140618 23:12:32 InnoDB: Initializing buffer pool, size = 128.0M140618 23:12:32 InnoDB: Completed initialization of buffer poolInnoDB: Error: log file ./ib_logfile0 is of different size 0 10485760 bytesInnoDB: than specified in the .cnf file 0 5242880 bytes!140618 23:12:32 [ERROR] Plugin 'InnoDB' init function returned error.140618 23:12:32 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.140618 23:12:32 [ERROR] Unknown/unsupported storage engine: InnoDB140618 23:12:32 [ERROR] Aborting
请注意这几行:

InnoDB: Error: log file ./ib_logfile0 is of different size 0 10485760 bytesInnoDB: than specified in the .cnf file 0 5242880 bytes!
你可以计算一下10485760的大小,10485760/1024/1024=10,修改my.ini,

innodb_log_file_size = 10M
要看mysql的日志,请进行如下操作:



성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.