Reputation: 175
I know this questions has been asked many times here, i searched it a lot and found various answers but still unable to solved my problem.
Apache is running successfully on port 80, but when i try to start mysql, it gives me the following error message.
13:36:13 [mysql] Error: MySQL shutdown unexpectedly.
13:36:13 [mysql] This may be due to a blocked port, missing dependencies,
13:36:13 [mysql] improper privileges, a crash, or a shutdown by another method.
13:36:13 [mysql] Press the Logs button to view error logs and check
13:36:13 [mysql] the Windows Event Viewer for more clues
13:36:13 [mysql] If you need more help, copy and post this
13:36:13 [mysql] entire log window on the forums
LogFile
140215 13:36:13 [Note] Plugin 'FEDERATED' is disabled.
140215 13:36:13 InnoDB: The InnoDB memory heap is disabled
140215 13:36:13 InnoDB: Mutexes and rw_locks use Windows interlocked functions
140215 13:36:13 InnoDB: Compressed tables use zlib 1.2.3
140215 13:36:13 InnoDB: Initializing buffer pool, size = 16.0M
140215 13:36:13 InnoDB: Completed initialization of buffer pool
InnoDB: Error: space header page consists of zero bytes in data file D:\xampp\mysql\data\ibdata1
140215 13:36:13 InnoDB: Could not open or create data files.
140215 13:36:13 InnoDB: If you tried to add new data files, and it failed here,
140215 13:36:13 InnoDB: you should now edit innodb_data_file_path in my.cnf back
140215 13:36:13 InnoDB: to what it was, and remove the new ibdata files InnoDB created
140215 13:36:13 InnoDB: in this failed attempt. InnoDB only wrote those files full of
140215 13:36:13 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
140215 13:36:13 InnoDB: remove old data files which contain your precious data!
140215 13:36:13 [ERROR] Plugin 'InnoDB' init function returned error.
140215 13:36:13 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140215 13:36:13 [ERROR] Unknown/unsupported storage engine: InnoDB
140215 13:36:13 [ERROR] Aborting
Kindly guide me how to resolve this problem.
Regards, Aftab
Upvotes: 2
Views: 5479
Reputation: 1011
I had a similar error, and managed to solve it with this:
go to Xampp/mysql/bin/my.ini
add the following line:
innodb_force_recovery = 1
(I think anything > 0 works here, also... it might be handy to make a backup of the file just to be on the safe side.)
You should now be able to successfully start your mySQL service.
Upvotes: 1
Reputation: 10294
You may want to take a look here : https://superuser.com/questions/653953/cant-start-mysql-xampp-after-installing-on-external-drive
Hope you did a copy of your file before deleting them ?
Upvotes: 1