MySQL服务挂起“正在启动”模式

时间:2014-02-10 13:31:04

标签: mysql

我正在尝试使用此link在Windows Server 2003上安装多个MySQL实例。

端口6699上的第一个实例已配置并成功运行。但是当我尝试在默认端口(3306)上安装另一个实例时,MySQL服务挂起“正在启动”状态。这是日志

140210 17:13:20 [Note] Plugin 'FEDERATED' is disabled.
140210 17:13:20 InnoDB: The InnoDB memory heap is disabled
140210 17:13:20 InnoDB: Mutexes and rw_locks use Windows interlocked functions
140210 17:13:20 InnoDB: Compressed tables use zlib 1.2.3
140210 17:13:20 InnoDB: Initializing buffer pool, size = 128.0M
140210 17:13:20 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
140210 17:13:21  InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
140210 17:13:21  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...
140210 17:13:23  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: 127 rollback segment(s) active.
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
140210 17:13:26  InnoDB: Waiting for the background threads to start
140210 17:13:27 InnoDB: 1.1.8 started; log sequence number 0
140210 17:13:27 [Note] Server hostname (bind-address): '0.0.0.0'; port: 6699
140210 17:13:27 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
140210 17:13:27 [Note] Server socket created on IP: '0.0.0.0'.
140210 17:13:27 [Note] Event Scheduler: Loaded 0 events
140210 17:13:27 [Note] C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld.exe: ready for connections.
Version: '5.5.25'  socket: ''  port: 6699  MySQL Community Server (GPL)
140210 17:42:18 [Note] Plugin 'FEDERATED' is disabled.
140210 17:42:18 InnoDB: The InnoDB memory heap is disabled
140210 17:42:18 InnoDB: Mutexes and rw_locks use Windows interlocked functions
140210 17:42:18 InnoDB: Compressed tables use zlib 1.2.3
140210 17:42:19 InnoDB: Initializing buffer pool, size = 128.0M
140210 17:42:19 InnoDB: Completed initialization of buffer pool
140210 17:42:19 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!

观察行140210 17:42:19 InnoDB: Database was not shut down normally!

1 个答案:

答案 0 :(得分:0)

  

InnoDB:ibdata文件中的日志序列号与

不匹配

仔细检查您的配置!

进行binay备份或整个/ var / lib / mysql。

如果您不需要最新数据,请删除日志文件并尝试启动。

如果您需要数据,请尝试以下方法:

以增加的顺序尝试innodb_force_recovery = 1到6所有六个选项。

假设最坏的 - innodb磁盘映像已损坏。

如果你很幸运,你可以抢救大部分数据,也许mysql以恢复模式之一启动,在每个表上运行校验和,看看哪些表还可以。

如果mysql拒绝启动某些恢复模式N并在恢复模式N启动时崩溃,那么请寻找我希望系统配置为采用的每日/每周备份。