how to restore databases in phpmyadmin after uninstallation of xampp

 ̄綄美尐妖づ 提交于 2019-12-02 05:33:33

问题


As my XAMPP was not working properly, I have uninstalled it from my computer. While installation, I got the warning message about whether I want to delete the htdocs folder too. As all my programs were in htdocs, I have not deleted it. But I got no warning message about the databases and as a result I have forgotten about the databases. I have no backup copy too. After uninstallation, I found that xampp contains only the folder htdocs and no databases. Is there anyway to restore the databases? Please help. I am very anxious as there were a lot of data and tables in the databases.


回答1:


According to What is the exact location of Mysql database tables in XAMPP folder?, XAMPP stores the MySQL datadir in C:\xampp\mysql\data 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.




回答2:


When you restore old mysql\data\ to new installed xamp, your newly installed xamp version must be same as old xamp version.

Then only restore data will work.



来源:https://stackoverflow.com/questions/35079078/how-to-restore-databases-in-phpmyadmin-after-uninstallation-of-xampp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!