当前位置: 首页 > 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.xdnf.cn/news/1095499.html

相关文章:

  • Java-69 深入浅出 RPC 单体架构 垂直架构 分布式架构 微服务架构
  • 堆的应用(讲解超详细)
  • 学习软件测试的第十四天(移动端)
  • ElementUI:高效优雅的Vue.js组件库
  • 【HarmonyOS Next之旅】DevEco Studio使用指南(四十二) -> 动态修改编译配置
  • Eigen中四元数、欧拉角、旋转矩阵、旋转向量之间的转换
  • 解锁医疗新视界:医患共决策时间轴AI可视化工具
  • HighReport报表工具开始支持BS报表设计器
  • msf复现永恒之蓝
  • 不止于快:金士顿XS2000移动固态硬盘如何重塑你的数字生活
  • 32多串300A保护板测试仪:新能源电池安全的核心守护者
  • 服务器组件与 Actions:重塑 React 数据交互
  • Linux 内核日志中常见错误
  • 前端开发资源压缩与请求优化
  • 编译OpenHarmony-4.0-Release RK3566 报错
  • 鸿蒙开发文档
  • Linux入门篇学习——Linux 工具之 make 工具和 makefile 文件
  • 观成科技:基于自监督学习技术的恶意加密流量检测方案
  • 论文精读(一)| 量子计算系统软件研究综述
  • 图书管理系统(完结版)
  • Redis数据安全性分析
  • 心智模式:觉察思维定势,突破决策盲区
  • 【QT】文件、多线程、网络相关内容
  • 【PyTorch】PyTorch中数据准备工作(AI生成)
  • C++并发编程-11. C++ 原子操作和内存模型
  • 继承与多态:面向对象编程的两大支柱
  • AI Agent:我的第一个Agent项目
  • 树莓派免密登录(vs code/cursor)
  • 一天两道力扣(3)
  • 【计算机组成原理——知识点总结】-(总线与输入输出设备)-学习笔记总结-复习用