Softaculous


Topic : My Sql not Start when restart my PC!


Posted By: r.dehshahri on February 10, 2016, 2:32 pm
hi guys !
i installed ammps 3.4 on win8.1 . sometime mysql not starting i seen error in log error:
2016-02-10 17:45:17 3548 [Warning] You need to use --log-bin to make --binlog-format work.
2016-02-10 17:45:17 3548 [Note] Plugin 'FEDERATED' is disabled.
2016-02-10 17:45:17 3548 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-02-10 17:45:17 3548 [Note] InnoDB: The InnoDB memory heap is disabled
2016-02-10 17:45:17 3548 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-02-10 17:45:17 3548 [Note] InnoDB: Memory barrier is not used
2016-02-10 17:45:17 3548 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-02-10 17:45:17 3548 [Note] InnoDB: Not using CPU crc32 instructions
2016-02-10 17:45:17 3548 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-02-10 17:45:17 3548 [Note] InnoDB: Completed initialization of buffer pool
2016-02-10 17:45:17 3548 [Note] InnoDB: Highest supported file format is Barracuda.
2016-02-10 17:45:17 3548 [Note] InnoDB: The log sequence numbers 1600637 and 1600637 in ibdata files do not match the log sequence number 2946005 in the ib_logfiles!
2016-02-10 17:45:17 3548 [Note] InnoDB: Database was not shutdown normally!
2016-02-10 17:45:17 3548 [Note] InnoDB: Starting crash recovery.
2016-02-10 17:45:17 3548 [Note] InnoDB: Reading tablespace information from the .ibd files...
2016-02-10 17:45:17 3548 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace dehshahri/yoi9h_associations uses space ID: 2 at filepath: .\dehshahri\yoi9h_associations.ibd. Cannot open tablespace mysql/innodb_index_stats which uses space ID: 2 at filepath: .\mysql\innodb_index_stats.ibd
InnoDB: Error: could not open single-table tablespace file .\mysql\innodb_index_stats.ibd
InnoDB: We do not continue the crash recovery, because the table may become
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
InnoDB: To fix the problem and start mysqld:
InnoDB: 1) If there is a permission problem in the file and mysqld cannot
InnoDB: open the file, you should modify the permissions.
InnoDB: 2) If the table is not needed, or you can restore it from a backup,
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
InnoDB: crash recovery and ignore that table.
InnoDB: 3) If the file system or the disk is broken, and you cannot remove
InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
InnoDB: and force InnoDB to continue crash recovery here.




Posted By: Rishi_P on February 11, 2016, 8:39 am | Post: 1
Open MySQL config.

AMPPS Control Panel --> MySQL --> Configuration.

under [mysqld] section add following line.

innodb_force_recovery = 1

save it and restart MySQL.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.