Home  >  Q&A  >  body text

python - ubuntu如何恢复mysql?

我的服务器出了点问题,导致系统进不去,好在把所有的数据都拷贝下来了~ ( 用阿里云的快照
现在的问题是,我在新的服务器上装了一个mysql
我如果有原来数据库文件的话 请问要如何恢复数据?
直接拷贝文件过去吗? 如果是这样 要拷贝哪些文件到哪里?

怪我咯怪我咯2741 days ago639

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-18 10:28:18

    If the data file is copied, it will also be copied to the data directory.
    It should be noted that the version of mysql must be the same, because the file structure of different versions may be different.

    reply
    0
  • Cancelreply