且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 XAMPP 中恢复 mysql 数据库?

更新时间:2023-01-09 11:48:35

要将数据库恢复到 XAMPP,您需要以下这些东西:-.frm 、 .ibd 文件和 ibdata1 可以在 mysql/data 文件夹中找到

To restore your database to XAMPP these are the things you need: -.frm , .ibd files , and ibdata1 can be found in mysql/data folder

步骤

  • 安装新的 XAMPP

  • Install New XAMPP

替换mysql/data中的ibdata1

Replace ibdata1 in mysql/data

复制要恢复的数据库的文件夹 [.frm 和 .ibd]并粘贴到 mysql/data 中

Copy the folders of the database you want to restore [.frm and .ibd] and paste in mysql/data

运行 mysql 和 Viola 就可以了!

Run the mysql and Viola it works!

如果出现#1932错误,只需导入create_tables.sql来自 xampp/phpMyAdmin/sql,这就解决了问题.

If there is an #1932 error occur, just import the create_tables.sql from xampp/phpMyAdmin/sql and this solves the problem.