更新时间:2023-01-09 11:48:29
根据Mysql 数据库表在 XAMPP 文件夹中的具体位置是什么?,XAMPP 将 MySQL datadir 存储在 C:xamppmysqldata
在 Windows 上和 /Applications/XAMPP/xamppfiles/var/mysql
在 Mac 上.除非您手动更改 datadir,否则您的数据库文件将存储在 XAMPP 文件夹中.由于该文件夹现在只有 htdocs
子目录,不幸的是,您的数据库似乎已经消失了.如果您有旧系统的文件级备份,那么您就有机会恢复足够多的数据库来恢复存储的数据.
According to What is the exact location of Mysql database tables in XAMPP folder?, XAMPP stores the MySQL datadir in C:xamppmysqldata
on Windows and /Applications/XAMPP/xamppfiles/var/mysql
on Mac. Unless you manually changed the datadir, your database files are stored in the XAMPP folder. Since that folder only has the htdocs
subdirectory now, unfortunately, your database seems to be gone. If you have file-level backups of the old system, there's a chance you can restore the database enough to recover the stored data.