xampp无法启动mysql的问题

发布于 2022-09-01 22:07:08 字数 5332 浏览 10 评论 0

请问,xampp, mysql无法启动还可能有什么原因?

已排除:
1.端口被占用问题;
2.默认3306端口并没有被占用;
3.删除xampp\mysql\data\下的ibdata1再重启;
4.没装其他mysql。

多谢。

log如下:

clipboard.png

2015-12-04 12:08:16 6772 [Note] Plugin 'FEDERATED' is disabled.
2015-12-04 12:08:16 26b4 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.
2015-12-04 12:08:16 6772 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-12-04 12:08:16 6772 [Note] InnoDB: The InnoDB memory heap is disabled
2015-12-04 12:08:16 6772 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-12-04 12:08:16 6772 [Note] InnoDB: Memory barrier is not used
2015-12-04 12:08:16 6772 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-12-04 12:08:16 6772 [Note] InnoDB: Not using CPU crc32 instructions
2015-12-04 12:08:16 6772 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-12-04 12:08:16 6772 [Note] InnoDB: Completed initialization of buffer pool
2015-12-04 12:08:16 6772 [Note] InnoDB: Restoring page 0 of tablespace 0
2015-12-04 12:08:16 6772 [Warning] InnoDB: Doublewrite does not have page_no=0 of space: 0
2015-12-04 12:08:16 6772 [ERROR] InnoDB: space header page consists of zero bytes in data file D:\XAMPP\mysql\data\ibdata1
2015-12-04 12:08:16 6772 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2015-12-04 12:08:16 6772 [ERROR] Plugin 'InnoDB' init function returned error.
2015-12-04 12:08:16 6772 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2015-12-04 12:08:16 6772 [ERROR] Unknown/unsupported storage engine: InnoDB
2015-12-04 12:08:16 6772 [ERROR] Aborting

2015-12-04 12:08:16 6772 [Note] Binlog end
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'partition'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_METRICS'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_CMPMEM'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_CMP'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_LOCKS'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'INNODB_TRX'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'BLACKHOLE'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'ARCHIVE'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'MRG_MYISAM'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'MyISAM'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'MEMORY'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'CSV'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'sha256_password'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'mysql_old_password'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'mysql_native_password'
2015-12-04 12:08:16 6772 [Note] Shutting down plugin 'binlog'
2015-12-04 12:08:16 6772 [Note] d:\xampp\mysql\bin\mysqld.exe: Shutdown complete

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

怪异←思 2022-09-08 22:07:08

解决了。
是权限问题,加everyone完全控制,就好了。如下:
(然而我也想知道为什么我的D盘有权限问题=。=)
引用stackoverflow上一个和我同样问题(http://stackoverflow.com/questions/18022809/xampp-mysql-shutdown-unexpectedly)的哥们儿一句话:

OMG it worked after everything I tried, this actually works and I don't understand why!!

clipboard.png

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文