php mysql 启动之后自动关闭
报错日志:
2023-07-06 10:48:19 0 [Note] Starting MariaDB 10.4.28-MariaDB source revision c8f2e9a5c0ac5905f28b050b7df5a9ffd914b7e7 as process 6288
2023-07-06 10:48:19 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2023-07-06 10:48:19 0 [Note] InnoDB: Uses event mutexes
2023-07-06 10:48:19 0 [Note] InnoDB: Compressed tables use zlib 1.2.12
2023-07-06 10:48:19 0 [Note] InnoDB: Number of pools: 1
2023-07-06 10:48:19 0 [Note] InnoDB: Using SSE2 crc32 instructions
2023-07-06 10:48:19 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2023-07-06 10:48:19 0 [Note] InnoDB: Completed initialization of buffer pool
2023-07-06 10:48:19 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2023-07-06 10:48:19 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2023-07-06 10:48:19 0 [Note] InnoDB: Setting file 'F:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2023-07-06 10:48:19 0 [Note] InnoDB: File 'F:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2023-07-06 10:48:19 0 [Note] InnoDB: Waiting for purge to start
2023-07-06 10:48:19 0 [Note] InnoDB: 10.4.28 started; log sequence number 2349206; transaction id 1987
2023-07-06 10:48:19 0 [Note] InnoDB: Loading buffer pool(s) from F:\xampp\mysql\data\ib_buffer_pool
2023-07-06 10:48:19 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-07-06 10:48:19 0 [Note] Server socket created on IP: '::'.
解决方法
参考http://www.manongjc.com/detail/28-cokdecwjtqjsads.html、https://stackoverflow.com/questions/56847804/xampp-mysql-service-crash-after-reboot
1、点击xampp面板上的Shell按钮进入命令框,输入命令:
mysqld –-console –-skip-grant-tables –-skip-external-locking
2、第一个cmd命令行窗口不关闭,重新在面板上点开一个Shell,再次输入指令:
mysqlcheck -r --databases mysql --use-frm
等命令窗口不再变化,再关闭命令窗口,重新启动xampp,重启mysql,问题解决。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
2020-07-06 promise引用自吕大豹
2020-07-06 vue的八个生命周期