How to recover Mysql database from backup files

前端 未结 1 789
南旧
南旧 2021-01-07 11:04

I have using VPS that had to be re-imaged. my DB was part of it and it was being backup up as the app wasn\'t in production yet. However, there is some data that I wish to r

1条回答
  •  礼貌的吻别
    2021-01-07 11:47

    The mysql data files in Ubuntu are located at /var/lib/mysql

    To restore your database you need:

    1) create new database named as old one
    2) stop mysql server
    3) copy old database files from /var/lib/mysql/your_database_name/ to new system
    4) start mysql server

    Your database will be restored.

    0 讨论(0)
提交回复
热议问题