26

yesterday i worked with my xampp and i used apache and mysql services. Today i want to start mysql service and did not worked. I try to search on forums a solution but i cant find anything, so i ask you.

In the log file i find this message after the mysql stopped working:

2015-10-29 12:04:02 148c 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.
151029 12:04:02 [Note] InnoDB: Using mutexes to ref count buffer pool pages
151029 12:04:02 [Note] InnoDB: The InnoDB memory heap is disabled
151029 12:04:02 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
151029 12:04:02 [Note] InnoDB: Memory barrier is not used
151029 12:04:02 [Note] InnoDB: Compressed tables use zlib 1.2.3
151029 12:04:02 [Note] InnoDB: Not using CPU crc32 instructions
151029 12:04:02 [Note] InnoDB: Initializing buffer pool, size = 16.0M
151029 12:04:02 [Note] InnoDB: Completed initialization of buffer pool
151029 12:04:02 [Note] InnoDB: Highest supported file format is Barracuda.
2015-10-29 12:04:02 148c  InnoDB: Operating system error number 2 in a file operation.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
151029 12:04:02 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/innodb_index_stats'. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html for how to resolve the issue.
151029 12:04:02 [ERROR] InnoDB: Tablespace open failed for '"mysql"."innodb_index_stats"', ignored.
151029 12:04:02 [Note] InnoDB: 128 rollback segment(s) are active.
151029 12:04:02 [Note] InnoDB: Waiting for purge to start
151029 12:04:02 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.22-72.0 started; log sequence number 1665234
151029 12:04:02 [Note] Plugin 'FEEDBACK' is disabled.
151029 12:04:02 [Note] Server socket created on IP: '::'.
151029 12:04:02 [ERROR] mysqld.exe: Table '.\mysql\db' is marked as crashed and last (automatic?) repair failed
151029 12:04:02 [ERROR] Fatal error: Can't open and lock privilege tables: Table '.\mysql\db' is marked as crashed and last (automatic?) repair failed

Can you help me fix this issue?

Isaac Bennetch
  • 11,830
  • 2
  • 32
  • 43
Francis
  • 1,775
  • 2
  • 12
  • 15

3 Answers3

141

I have fixed the issue. I copied all files in xampp/mysql/backup/ to xampp/mysql/data/.

Francis
  • 1,775
  • 2
  • 12
  • 15
17

I had this similar issue today and was able to solve it by:

  1. Close the XAMPP control panel

  2. delete the following files under /xampp/mysql/data:

    • aria_log.**1
    • aria_log_control
    • ib_logfile0
    • ib_logfile1
    • ibdata1
    • ibtmp1
    • mysqld.pid
  3. AND modify the multi-master.info and delete all its content then save the file.

  4. open the Xampp and run mysql again.

Dharman
  • 30,962
  • 25
  • 85
  • 135
mCube
  • 334
  • 3
  • 8
9

As additional to the correct answer, you don't need to delete all the files inside xampp/mysql/data/, just replace with whatever inside xampp/mysql/backup/ will do. Cheers

Greyson Yee
  • 156
  • 3
  • 11