1. 论坛系统升级为Xenforo,欢迎大家测试!
    Dismiss Notice

请问,重做系统后如何恢复 MySQL 数据?

Discussion in '后端开发' started by f, Nov 12, 2009.

  1. f

    f New Member

    Joined:
    Apr 8, 2006
    Messages:
    641
    Likes Received:
    0
    请问,系统重做了,原来的 data 目录保留了,重新安装 MySQL ,如何恢复那些数据库呢?

    搜索了一下,没有找到适应的信息。
     
  2. junp

    junp New Member

    Joined:
    Nov 6, 2005
    Messages:
    1,259
    Likes Received:
    4
    建空数据库,把data复制进去试下。
     
  3. A君

    A君 Well-Known Member

    Joined:
    Aug 31, 2005
    Messages:
    19,987
    Likes Received:
    98
    我们的都是一键安装

    做好安装包一键安装php,mysql,等等。
     
  4. DKEN

    DKEN Well-Known Member

    Joined:
    Aug 7, 2006
    Messages:
    3,358
    Likes Received:
    33
    复制回去对应目录不行?:)
     
  5. f

    f New Member

    Joined:
    Apr 8, 2006
    Messages:
    641
    Likes Received:
    0
    原来复制过去就可以了。

    只是需要重新建立一下用户。
     
  6. f

    f New Member

    Joined:
    Apr 8, 2006
    Messages:
    641
    Likes Received:
    0
    我用的 AppServ 那个。
     
  7. A君

    A君 Well-Known Member

    Joined:
    Aug 31, 2005
    Messages:
    19,987
    Likes Received:
    98
    我们自己做的安装文件。
     
  8. webren

    webren New Member

    Joined:
    Sep 6, 2008
    Messages:
    2,934
    Likes Received:
    0
    把原先的复制回data目录,然后最好要修复下。
     
  9. 老林

    老林 New Member

    Joined:
    Sep 6, 2005
    Messages:
    10,580
    Likes Received:
    36
    直接整个数据库复制过去 再建一下用户分配一下权限
     
  10. f

    f New Member

    Joined:
    Apr 8, 2006
    Messages:
    641
    Likes Received:
    0
    我是这么干的。