XAMPP 版本3.2.4

之前就碰到过一次,直接重装xampp,问题解决。

今天又碰到了,

15:48:46  [mysql]    Error: MySQL shutdown unexpectedly.
15:48:46  [mysql]   This may be due to a blocked port, missing dependencies,
15:48:46  [mysql]   improper privileges, a crash, or a shutdown by another method.
15:48:46  [mysql]   Press the Logs button to view error logs and check
15:48:46  [mysql]   the Windows Event Viewer for more clues
15:48:46  [mysql]   If you need more help, copy and post this
15:48:46  [mysql]   entire log window on the forums

查看mysql_error.log

2021-08-05 15:06:57 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-08-05 15:06:57 0 [Note] InnoDB: Uses event mutexes
2021-08-05 15:06:57 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-08-05 15:06:57 0 [Note] InnoDB: Number of pools: 1
2021-08-05 15:06:57 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-08-05 15:06:57 0 [Note] InnoDB: Initializing buffer pool, total size = 1G, instances = 1, chunk size = 128M
2021-08-05 15:06:57 0 [Note] InnoDB: Completed initialization of buffer pool
2021-08-05 15:06:57 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-08-05 15:06:57 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-08-05 15:06:57 0 [Note] InnoDB: Setting file 'E:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-08-05 15:06:57 0 [Note] InnoDB: File 'E:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-08-05 15:06:57 0 [Note] InnoDB: Waiting for purge to start
2021-08-05 15:06:57 0 [Note] InnoDB: 10.4.18 started; log sequence number 300378; transaction id 8
2021-08-05 15:06:57 0 [Note] InnoDB: Loading buffer pool(s) from E:\xampp\mysql\data\ib_buffer_pool
2021-08-05 15:06:57 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-08-05 15:06:57 0 [Note] InnoDB: Buffer pool(s) load completed at 210805 15:06:57
2021-08-05 15:06:57 0 [Note] Server socket created on IP: '::'.
InnoDB: using atomic writes.

按照https://www.cnblogs.com/4php/p/4122210.html删除文件后,依然不能启动。

在xampp面板上重装mysql,又出现如下报错:

2021-08-05 15:07:42 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2021-08-05 15:07:42 0 [Note] InnoDB: Uses event mutexes
2021-08-05 15:07:42 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-08-05 15:07:42 0 [Note] InnoDB: Number of pools: 1
2021-08-05 15:07:42 0 [Note] InnoDB: Using SSE2 crc32 instructions
2021-08-05 15:07:42 0 [Note] InnoDB: Initializing buffer pool, total size = 1G, instances = 1, chunk size = 128M
2021-08-05 15:07:43 0 [Note] InnoDB: Completed initialization of buffer pool
2021-08-05 15:07:43 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-08-05 15:07:43 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-08-05 15:07:43 0 [Note] InnoDB: Setting file 'E:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-08-05 15:07:43 0 [Note] InnoDB: File 'E:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2021-08-05 15:07:43 0 [Note] InnoDB: Waiting for purge to start
2021-08-05 15:07:43 0 [Note] InnoDB: 10.4.18 started; log sequence number 300405; transaction id 8
2021-08-05 15:07:43 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-08-05 15:07:43 0 [Note] InnoDB: Loading buffer pool(s) from E:\xampp\mysql\data\ib_buffer_pool
2021-08-05 15:07:43 0 [Note] InnoDB: Buffer pool(s) load completed at 210805 15:07:43
2021-08-05 15:07:43 0 [Note] Server socket created on IP: '::'.
2021-08-05 15:07:43 0 [ERROR] mysqld.exe: Table '.\mysql\db' is marked as crashed and last (automatic?) repair failed
2021-08-05 15:07:43 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table '.\mysql\db' is marked as crashed and last (automatic?) repair failed
2021-08-05 15:07:43 0 [ERROR] Aborting
InnoDB: using atomic writes.

直接把db文件夹标为crash,并且修复失败。

最后按照https://stackoverflow.com/questions/56847804/xampp-mysql-service-crash-after-reboot的方法:

  1. 点击xampp面板上的Shell按钮进入命令框,输入命令:

    mysqld –-console –-skip-grant-tables –-skip-external-locking
  2. 保持上一个窗口不关闭,重新在面板上点开一个Shell,输入指令:
    mysqlcheck -r --databases mysql --use-frm

    等命令窗口不再变化,再关闭命令窗口,重新启动xampp,问题解决。

到现在,已经可以正常打开mysql server 了。

如果出现“table *** doesn't exist in engine”,在db文件夹中发现文件都在。这时候需要在回收站中找到删除的ibdata1文件,还原ibdata1,记得是最早删除的那个。

还原后,重启mysql,打开navicate,终于回来了。

转载请注明出处!

XAMPP mysql无法启动相关推荐

  1. wampp mysql版_xampp 64位下载(XAMPP 5.6.8 for Windows)官方版_附xampp mysql无法启动解决方案...

    xampp 64位下载(XAMPP 5.6.8 for Windows)官方版_附xampp mysql无法启动解决方案 xampp(apache+mysql+php+perl)是一个功能强大的建站集 ...

  2. xampp服务器无法启动mysql服务

    关于xampp,mysql无法启动的问题. 有三种解决方法. 1.端口冲突:在mysql右侧的congfig中,选择my.ini,将其原先设置的端口3306,全部更改至3308. 2.原先安装过sql ...

  3. xmapp apache与mysql无法启动_XAMPP Apache Mysql 无法启动原因及解决方法

    昨天遇到的一个问题,安装XAMPP后无法启动Apache服务,本以为可能是一些系统服务文件被占用的原因,安装软件后需重启一遍.可是重启计算机后依然无法启动Apache服务,状态栏里总是显示" ...

  4. 安装XAMPP, MYSQL 启动后自动停止

    XAMPP安装步骤 http://www.51testing.com/?uid-111433-action-viewspace-itemid-90256 http://www.leapsoul.cn/ ...

  5. XAMPP的MYSQL无法启动 -This may be due to a blocked port, missing dependencies,

    XAMPP的MYSQL无法启动 -This may be due to a blocked port, missing dependencies, 问题描述 解决方法:借鉴: https://www. ...

  6. Xampp里Mysql服务启动不起来,错误1067

    2019独角兽企业重金招聘Python工程师标准>>> 在XAMPP里MYSQL以服务方式启动失败,提示错误是 1067 进程意外终止 解决方法: 1. 进入 xampp安装目录 2 ...

  7. 修改XAMPP启动mysql报错Port 3306 in use by D:\xampp\mysql\bin\mysqld!

    添加小程序,兑换各种视频教程/数据资源. 参考:https://www.cnblogs.com/syq816/p/7995183.html. 解决办法: 1.cmd-->regedit 打开注册 ...

  8. Xampp/MySQL Mysql的启动失败问题(端口号被占用):Xampp port 3306 in use by“ Unable to open process“

    问题描述 记录一下问题:Xampp port 3306 in use by" Unable to open process" 也就是 MySQL数据库不会在配置好的端口号不空闲的时 ...

  9. 下载了XAMPP怎样打开MYSQL_xampp mysql安装启动

    xampp mysql启动-CAM锐拍app,锐拍智能系列产品配套软件.通过锐拍app你可一键快速链接设备,体验更方便.好用的拍摄服务,以及分享导游朋友圈让更多人看到你的作品等. 基本简介 xampp ...

最新文章

  1. CVPR 2021 | 基于稠密场景匹配的相机定位学习
  2. PostgreSQL、Greenplum 日常监控 和 维护任务
  3. cx_sy_dyn_call_illegal_type
  4. zcmu1540(二分)
  5. SQLite学习总结(1)——SQLite简介及快速入门
  6. 安卓程序代写 网上程序代写[原]Android开发技巧--ListView
  7. 华师c语言程序设计作业,华师《C语言程序设计》练习题库答案
  8. 大数据时代下的Scrapy爬虫框架
  9. vod点歌系统服务器,冰河家庭VOD点歌系统
  10. 讯图科技数据网关解决方案
  11. 矩阵求逆(伴随阵法C++)
  12. Android安装软件的后缀,apk是什么文件,后缀是apk是什么文件
  13. 缘,如雁渡寒潭,似风吹疏竹
  14. 1.(python)阿拉伯数字转中文大写
  15. su必备插件_建模必备逆天Sketchup插件I
  16. 黑马全新推出《2022年最实用的PS全套教程》
  17. 【DDOS 防御小建议】
  18. Unity使用WebCamTexture 实现手机前后摄像头调用
  19. GPT-3: 最强的人工智能?
  20. 年终总结(我心飞翔向)

热门文章

  1. session 入memcache
  2. beyond compare对比软件
  3. [SYSS-2018-033]: Fujitsu Wireless Keyboard Set LX901 - Keystroke Injection Vulnerability
  4. 计算机排序操作步骤,win7电脑更改磁盘卷标排列顺序的操作步骤-电脑自学网
  5. NOR flash和NAND flash区别,RAM 和ROM区别
  6. 福布斯2020年度AI大奖
  7. 2018-2019-2 网络对抗技术 20165230 Exp4 恶意代码分析
  8. Linux驱动设备号
  9. 国外10个优秀的免费轻量级CMS系统
  10. html字幕精灵图标,Sayatoo字幕精灵(酷狗插件+预设模板含教程)