代码之家  ›  专栏  ›  技术社区  ›  Anon

错误:MySQL意外关闭-XAMPP(日志上没有太多信息)

  •  0
  • Anon  · 技术社区  · 3 年前

    我正在尝试在我的XAMPP上启动mySQL。它昨天运行得很好。但突然间,它不起作用了。

    01:22:37  [mysql]   Attempting to start MySQL app...
    01:22:38  [mysql]   Status change detected: running
    01:22:39  [mysql]   Status change detected: stopped
    01:22:39  [mysql]   Error: MySQL shutdown unexpectedly.
    01:22:39  [mysql]   This may be due to a blocked port, missing dependencies, 
    01:22:39  [mysql]   improper privileges, a crash, or a shutdown by another method.
    01:22:39  [mysql]   Press the Logs button to view error logs and check
    01:22:39  [mysql]   the Windows Event Viewer for more clues
    01:22:39  [mysql]   If you need more help, copy and post this
    01:22:39  [mysql]   entire log window on the forums
    

    在日志文件中

    2022-11-25  1:22:37 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
    2022-11-25  1:22:37 0 [Note] InnoDB: Uses event mutexes
    2022-11-25  1:22:37 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
    2022-11-25  1:22:37 0 [Note] InnoDB: Number of pools: 1
    2022-11-25  1:22:37 0 [Note] InnoDB: Using SSE2 crc32 instructions
    2022-11-25  1:22:37 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
    2022-11-25  1:22:37 0 [Note] InnoDB: Completed initialization of buffer pool
    2022-11-25  1:22:38 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
    2022-11-25  1:22:38 0 [Note] InnoDB: Creating shared tablespace for temporary tables
    2022-11-25  1:22:38 0 [Note] InnoDB: Setting file 'G:\Xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
    2022-11-25  1:22:38 0 [Note] InnoDB: File 'G:\Xampp\mysql\data\ibtmp1' size is now 12 MB.
    2022-11-25  1:22:38 0 [Note] InnoDB: Waiting for purge to start
    2022-11-25  1:22:38 0 [Note] InnoDB: 10.4.25 started; log sequence number 3580223; transaction id 4597
    2022-11-25  1:22:38 0 [Note] InnoDB: Loading buffer pool(s) from G:\Xampp\mysql\data\ib_buffer_pool
    2022-11-25  1:22:38 0 [Note] Plugin 'FEEDBACK' is disabled.
    2022-11-25  1:22:38 0 [Note] Server socket created on IP: '::'.
    2022-11-25  1:31:54 0 [ERROR] InnoDB: Database page corruption on disk or a failed file read of tablespace mysql/transaction_registry page [page i2022-11-25  1:31:57 0 [Note] mysqld.exe: Aria engine: starting recovery
    recovered pages: 0% 100% (0.0 seconds); tables to flush: 1 0
     (0.0 seconds); 
    

    这个问题有什么解决方案吗?

    0 回复  |  直到 3 年前
        1
  •  1
  •   nethsrk    3 年前

    对我来说,它是在恢复xampMySQL数据库的备份后工作的。

    按照步骤进行恢复。 停止服务器,包括apache和MySQL

    1. 安装全新的Xampp安装
    2. 将您的ibdata1(examplep/mysql/data)复制到新安装中
    3. 将xamp/mysql/data中的所有文件夹复制到新安装中

    不要复制mysql、performance_schema、phpmyadmin文件夹

    现在启动服务器并检查phpMyAdmin。