在 PHPMyAdmin 中检索已删除的数据库
当我应该只删除 PHPMyAdmin 中的一张表时,我不小心删除了整个数据库。有没有办法检索数据库?
I accidently deleted the whole database when I should just delete one table in PHPMyAdmin. Is there a way of retrieving the database?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
有两种方法:
至于用 MySQL 来做这件事,但……在我所知的所有系统上,都没有。 MySQL 表是服务器数据目录中的文件,删除表会删除这些文件。一旦消失就消失了,只有上述方法才能将它们找回来。数据库是这些文件的目录,删除它会删除整个目录。
There are two ways:
As for doing it with MySQL, though...on all systems i'm aware of, no. MySQL tables are files in the server's data directory, and dropping a table deletes those files. Once they're gone, they're gone, and only the methods above can get them back. A database is a directory of those files, and dropping it deletes the whole directory.
这里同样的事情:-(
我关闭了xampp(V3.2.1)找到xampp\mysql\文件夹,右键选择恢复以前版本,选择最近恢复。完成此操作后,我打开 xampp,丢失的数据库已恢复,其中包含恢复日期的信息。不太理想,但总比没有数据库好:-)
Same thing here :-(
I closed xampp (V3.2.1) found the xampp\mysql\ folder, right-clicked and selected Restore previous version, select recent restore. When this finished I opened xampp and the missing database was back with the information dated as per the restore date. Not ideal but better than no database :-)
我也遇到了同样的情况,找到了一个简单的解决方案。首先使用
xampp/php/bin
文件夹中的mysql.exe
文件通过命令行访问数据库。删除phpmyadmin
数据库。然后,只需将create_tables.sql
文件导入phpmyadmin 数据库
。这解决了我的问题。如果您在使用此功能时遇到任何问题,请告诉我。
谢谢。
Same thing happened with me, found a easy solution. First make a command line access to the database using the
mysql.exe
file present inxampp/php/bin
folder. Delete thephpmyadmin
database. Then, just import thecreate_tables.sql
file to thephpmyadmin database
. This solved my problem.Let me know if you face any problem using this.
thanks.
您可以通过文件恢复软件恢复意外删除的数据库。查看此免费软件
http://www.majorgeeks.com/Restoration_d4474.html
更多信息请点击此处 -
http://emaillenin.blogspot.com/2010/11/recover -意外删除-mysql.html
You can retrieve a accidentally deleted database via a file restoration software. Check this free software
http://www.majorgeeks.com/Restoration_d4474.html
More information here -
http://emaillenin.blogspot.com/2010/11/recover-accidentally-deleted-mysql.html