首先,我检查mysql错误log
然后我在文件中将端口从3306更改为3307,然后启动Appache,MySQL和MySQL有相同的问题
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。
=>在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: '::'.
=>将数据库文件夹(例如,phpmyadmin,your_database)从data-bak复制到新的数据目录中。请勿覆盖系统表(例如MySQL,Performance_Schema)。
=>修复权限:确保数据文件夹及其内容具有MySQL Service的完整读取/写入权限。=>启动mySQL:通过XAMPP控制面板启动mySQL。再次检查错误日志以确认分辨率。