Recovering mysql database from data folder backup

前端 未结 9 1649
故里飘歌
故里飘歌 2020-12-03 01:42

I have uninstalled the old XAMPP and deleted all of the content of d:\\xampp folder and installed the new one. When I copy my backup folder (with the name of my

9条回答
  •  眼角桃花
    2020-12-03 02:38

    I found this searching for the way to recover my XAMPP databases in Ubuntu. The question is obviously for a Windows system, but I think this might be of help since this was the only good search result.

    For a standard installation in /opt/lampp/. You can recover the databases from the folder /opt/lampp/var/mysql/ if you have a backup of the whole lampp installation. (You might consider to add the mysql folder to your backup system, if you haven't.)

    1. Make sure, MySQL is not running.
    2. Copy the above folder to a new XAMPP installation.
    3. Make sure the owner is mysql.
    4. Start MySQL.

    Your old databases should be accessible again.

提交回复
热议问题