Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL Error - InnoDB Doesn't Work And Server Instantly Shutdown

i'm trying to set up a MySQL server with XAMPP, it's not working and i'm getting this error:

2014-10-28 14:14:38 3768 [Note] Plugin 'FEDERATED' is disabled.

2014-10-28 14:14:38 588 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This 
option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.

2014-10-28 14:14:38 3768 [Note] InnoDB: Using atomics to ref count buffer pool pages

2014-10-28 14:14:38 3768 [Note] InnoDB: The InnoDB memory heap is disabled

2014-10-28 14:14:38 3768 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions

2014-10-28 14:14:38 3768 [Note] InnoDB: Memory barrier is not used

2014-10-28 14:14:38 3768 [Note] InnoDB: Compressed tables use zlib 1.2.3

2014-10-28 14:14:38 3768 [Note] InnoDB: Not using CPU crc32 instructions

2014-10-28 14:14:38 3768 [Note] InnoDB: Initializing buffer pool, size = 16.0M

2014-10-28 14:14:38 3768 [Note] InnoDB: Completed initialization of buffer pool

2014-10-28 14:14:38 3768 [ERROR] InnoDB: C:\xampp\mysql\data\ibdata1 can't be opened in read-write mode

2014-10-28 14:14:38 3768 [ERROR] InnoDB: The system tablespace must be writable!

2014-10-28 14:14:38 3768 [ERROR] Plugin 'InnoDB' init function returned error.

2014-10-28 14:14:38 3768 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.

2014-10-28 14:14:38 3768 [ERROR] Unknown/unsupported storage engine: InnoDB

2014-10-28 14:14:38 3768 [ERROR] Aborting

Extracted From mysql.log

I did try reinstalling, using AppleWS, and some fixes that i found here. None of them worked.

like image 617
Fabricio20 Avatar asked Sep 07 '25 01:09

Fabricio20


2 Answers

These lines:

2014-10-28 14:14:38 3768 [ERROR] InnoDB: C:\xampp\mysql\data\ibdata1 can't be opened in read-write mode

2014-10-28 14:14:38 3768 [ERROR] InnoDB: The system tablespace must be writable!

.. indicate a problem with permissions.

Check the permissions on C:\xampp\mysql\data\ibdata1 and ensure that whatever user you're running your server under has read/write access to that folder.

like image 61
Brando_Calrissian Avatar answered Sep 08 '25 16:09

Brando_Calrissian


I solved the problem following the following steps:

  1. I moved all files and directories from C:\xampp\mysql\data\ to another directory.
  2. I started MySQL from XAMPP to generate new files.
  3. I moved not generated files and directories to C:\xampp\mysql\data\.

This method didn't make me lost my configuration and my databases

like image 23
ela mannai Avatar answered Sep 08 '25 14:09

ela mannai