当前位置: 首页 > news >正文

XMAPP MySQL 启动后自动停止

XMAPP MySQL 启动后自动停止

问题情况

XMAPP 面板报错如下

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

图1
在这里插入图片描述

查看日志

[Note] Starting MariaDB 10.4.32-MariaDB source revision c4143f909528e3fab0677a28631d10389354c491 as process 16036
[Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
[Note] InnoDB: Uses event mutexes
[Note] InnoDB: Compressed tables use zlib 1.3
[Note] InnoDB: Number of pools: 1
[Note] InnoDB: Using SSE2 crc32 instructions
[Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
[Note] InnoDB: Completed initialization of buffer pool
[Note] InnoDB: Starting crash recovery from checkpoint LSN=300288
[Note] InnoDB: 128 out of 128 rollback segments are active.
[Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
[Note] InnoDB: Creating shared tablespace for temporary tables
[Note] InnoDB: Setting file '\Project\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
[Note] InnoDB: File '\Project\xampp\mysql\data\ibtmp1' size is now 12 MB.
[Note] InnoDB: Waiting for purge to start
[Note] InnoDB: 10.4.32 started; log sequence number 300297; transaction id 170
[Note] InnoDB: Loading buffer pool(s) from E:\Project\xampp\mysql\data\ib_buffer_pool
[Note] Plugin 'FEEDBACK' is disabled.
[Note] Server socket created on IP: '::'.

发现没有 报错 [Error],说明mysql 是正常启动了,但是之后又关闭了

解决办法

1. 将 xampp\mysql 文件下现有的 data文件 重命名为 data-backup
2. 复制一份 xampp\mysql 文件下的backup 在xampp\mysql文件下(即同一目录下),重命名为 data
3. 将 data-backup 中的 ibdata1 复制到 新的 data 文件中,覆盖其中的 ibdata1
4. 启动Mysql数据库是否成功 将文件数据库 即 data-backup 下面和数据库名称相同的文件夹(如图2) 复制到 data 文件下 ,完成数据恢复

知识:

  1. 文件ibdata1被称为MySQL系统表空间,它位于 xampp/mysql/data/mysql 下。这个ibdata1文件包含 MySQL 数据库中的所有表和索引。因此,您必须将其从备份文件夹复制到新创建的文件夹。

  2. 初始启动xmapp 需要执行 setup_xampp.bat 完成路径确定,如图3

  3. 查看端口的常见命令

    netstat -ano | findstr :3306  # 查询端口占用 如 3306 端口
    
     tasklist | findstr mysqld    # 查询目标运行程序 如 mysqld
    

图2

在这里插入图片描述

图3

在这里插入图片描述

http://www.dtcms.com/a/272071.html

相关文章:

  • 【实战】Dify从0到100进阶--文档解读(1)开源许可和大模型适配
  • Using Spring for Apache Pulsar:Transactions
  • MySQL断开连接后无法正常启动解决记录
  • 第一次搭建数据库
  • JavaScript 树形菜单总结
  • 2025社交电商新风口:推客小程序的商业逻辑与技术实现
  • 数据结构与算法之美:广义表
  • 通过vue如何利用 Three 绘制 简单3D模型(源码案例)
  • Redis中BigKey的隐患
  • Mysql分片:一致性哈希算法
  • 服务器内核级故障排查
  • 【计算机网络】HTTP1.0 HTTP1.1 HTTP2.0 QUIC HTTP3 究极总结
  • 【Python办公】使用Python和Tkinter构建Excel数据导入MySQL工具(GUI版)
  • 如何排查处理机械臂算法不精准问题?
  • 在徐州网络中服务器租用与托管的优势
  • LangChain框架 Prompts、Agents 应用
  • 浅克隆 深克隆
  • mvn能只test单独一个文件吗
  • vscode和插件用法
  • 数据分析中的拉链表解析
  • 网络安全初级
  • 从Rust模块化探索到DLB 2.0实践|得物技术
  • Linux进程——进程状态
  • ZW3D 二次开发-创建球体
  • 自动驾驶大模型---聊一聊特斯拉的FSD端到端系统
  • 自动驾驶数据集综述:统计特征、标注质量与未来展望
  • 一句话理解 ——【单点登录】
  • 【性能测试】jmeter+Linux环境部署和分布式压测,一篇打通...
  • 阿里云错题集分享
  • 在IDEA中无缝接入DeepSeek:智能编程助手指南