error:MySQL意外关闭。 (我已经阅读了所有的ansewrs,但我的情况不断,这让我不知所措)

问题描述 投票:0回答:1

首先,我检查mysql错误log

    我转到MySQL数据库中的“数据”目录。
  • I通过“ Data Gorg”重命名“ Data”文件夹,并在我命名的“数据”中创建其他一个,然后删除“ Data Gold”的内容,然后转到''backup''我找不到所有文件夹,我找不到全部内容
  • enter image description here
  • 然后我去回收,发现了我删除的所有数据,然后恢复了“数据”文件夹并启动XAMPP并仍然有问题扩展。

然后我在文件中将端口从3306更改为3307,然后启动Appache,MySQL和MySQL有相同的问题

    然后我找到了comand求解并运行comand
  • my.ini
    
    
  • .\setup_xampp.bat
    如果您有任何想法解决问题,请访问Xampp
    还有其他东西这个文件
  • C:\xampp ❯ .\setup_xampp.bat ################################# START XAMPP TEST SECTION ################################# [XAMPP]: Test php.exe with php\php.exe -n -d output_buffering=0 --version ... PHP 8.2.12 (cli) (built: Oct 24 2023 21:15:15) (ZTS Visual C++ 2019 x64) Copyright (c) The PHP Group Zend Engine v4.2.12, Copyright (c) Zend Technologies [XAMPP]: Test for the php.exe successfully passed. Good! ################################# END XAMPP TEST SECTION ################################### ######################################################################## # ApacheFriends XAMPP setup win32 Version # #----------------------------------------------------------------------# # Copyright (c) 2002-2025 Apachefriends 8.2.12 # #----------------------------------------------------------------------# # Authors: Kay Vogelgesang <[email protected]> # # Carsten Wiedmann <[email protected]> # ######################################################################## Sorry, but ... nothing to do! Press any key to continue . . . C:\xampp ❯
mysql_error.log

	

错误表示缺失/损坏的系统表(例如Mysql.Servers)。这是解决此问题的方法:
=>确保通过XAMPP控制面板停止Apache和MySQL。
mysql xampp
1个回答
0
投票
=>删除原始数据文件夹(不是备份)。

=>在c:\ xampp \ mysql中打开命令提示符:

2025-01-27 20:36:54 0 [ERROR] InnoDB: Operating system error number 2 in a file operation. 2025-01-27 20:36:54 0 [Note] InnoDB: Some operating system error numbers are described at https://mariadb.com/kb/en/library/operating-system-error-codes/ 2025-01-27 20:36:54 0 [ERROR] InnoDB: Cannot open datafile for read-only: '.\phpmyadmin\pma__central_columns.ibd' OS error: 71 2025-01-27 20:36:54 0 [ERROR] InnoDB: Operating system error number 203 in a file operation. 2025-01-27 20:36:54 0 [Note] InnoDB: Some operating system error numbers are described at https://mariadb.com/kb/en/library/operating-system-error-codes/ 2025-01-27 20:36:54 0 [ERROR] InnoDB: Could not find a valid tablespace file for ``phpmyadmin`.`pma__central_columns``. Please refer to https://mariadb.com/kb/en/innodb-data-dictionary-troubleshooting/ for how to resolve the issue. 2025-01-28 12:46:41 0 [Note] InnoDB: 128 out of 128 rollback segments are active. 2025-01-28 12:46:41 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2025-01-28 12:46:41 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2025-01-28 12:46:41 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB. 2025-01-28 12:46:41 0 [Note] InnoDB: Waiting for purge to start 2025-01-28 12:46:41 0 [Note] InnoDB: 10.4.32 started; log sequence number 747295; transaction id 1392 2025-01-28 12:46:41 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool 2025-01-28 12:46:41 0 [Note] Plugin 'FEEDBACK' is disabled. 2025-01-28 12:46:41 0 [Note] InnoDB: Buffer pool(s) load completed at 250128 12:46:41 2025-01-28 12:46:41 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded 2025-01-28 12:46:41 0 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist 2025-01-28 12:46:41 0 [Note] Server socket created on IP: '::'.

this this创建一个带有默认系统表的新鲜数据文件夹。

=>将数据库文件夹(例如,phpmyadmin,your_database)从data-bak复制到新的数据目录中。请勿覆盖系统表(例如MySQL,Performance_Schema)。

=>修复权限:确保数据文件夹及其内容具有MySQL Service的完整读取/写入权限。

=>启动mySQL:通过XAMPP控制面板启动mySQL。再次检查错误日志以确认分辨率。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.