[英]Retrieve a deleted database in PHPMyAdmin
I accidently deleted the whole database when I should just delete one table in PHPMyAdmin. 当我应该在PHPMyAdmin中删除一个表时,我意外地删除了整个数据库。 Is there a way of retrieving the database? 有没有办法检索数据库?
There are two ways: 有两种方法:
As for doing it with MySQL, though...on all systems i'm aware of, no. 至于使用MySQL,虽然...在我知道的所有系统上,不。 MySQL tables are files in the server's data directory, and dropping a table deletes those files. MySQL表是服务器数据目录中的文件,删除表会删除这些文件。 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. 数据库是这些文件的目录,删除它会删除整个目录。
Same thing here :-( 同样的事情:-(
I closed xampp (V3.2.1) found the xampp\\mysql\\ folder, right-clicked and selected Restore previous version, select recent restore. 我关闭了xampp(V3.2.1),找到了xampp \\ mysql \\文件夹,右键单击并选中Restore previous previous,选择最近恢复。 When this finished I opened xampp and the missing database was back with the information dated as per the restore date. 完成后我打开了xampp,丢失的数据库又回来了,根据恢复日期的信息。 Not ideal but better than no database :-) 不理想但比没有数据库更好:-)
Same thing happened with me, found a easy solution. 我发生了同样的事情,找到了一个简单的解决方案 First make a command line access to the database using the mysql.exe
file present in xampp/php/bin
folder. 首先使用xampp/php/bin
文件夹中的mysql.exe
文件命令行访问数据库。 Delete the phpmyadmin
database. 删除phpmyadmin
数据库。 Then, just import the create_tables.sql
file to the phpmyadmin database
. 然后,只需将create_tables.sql
文件导入phpmyadmin database
。 This solved my problem. 这解决了我的问题。
Let me know if you face any problem using this. 如果您使用此问题,请告诉我。
thanks. 谢谢。
You can retrieve a accidentally deleted database via a file restoration software. 您可以通过文件恢复软件检索意外删除的数据库。 Check this free software 检查这个免费软件
http://www.majorgeeks.com/Restoration_d4474.html http://www.majorgeeks.com/Restoration_d4474.html
More information here - http://emaillenin.blogspot.com/2010/11/recover-accidentally-deleted-mysql.html 更多信息 - http://emaillenin.blogspot.com/2010/11/recover-accidentally-deleted-mysql.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.