前天用复制方式备份mysql数据,备份完成后还原时出现 Incorrect information in file: '.\test\stuff.frm',test库中的所有表都这样,不知道用什么方法能把这些文件修好

解决方案 »

  1.   

    试试bin/mysqlcheck.exe -r test -uroot -p
      

  2.   

    运行mysqlcheck.exe -r test 后出现E:\winOA\mysql\bin>mysqlcheck -r test
    test.AGROUP
    error    : Incorrect information in file: '.\test\agroup.frm'
    test.ASYSSET
    error    : Incorrect information in file: '.\test\asysset.frm'
    test.BOOKS
    error    : Incorrect information in file: '.\test\books.frm'
    test.BOOKSNOTE
    error    : Incorrect information in file: '.\test\booksnote.frm'
    test.BOOKSTYPE
    error    : Incorrect information in file: '.\test\bookstype.frm'
    test.CARDLINK
    error    : Incorrect information in file: '.\test\cardlink.frm'
    test.CARDTYPE
    error    : Incorrect information in file: '.\test\cardtype.frm'
    test.CMU_BBS
    error    : Incorrect information in file: '.\test\cmu_bbs.frm'
    test.CMU_FILTER
    error    : Incorrect information in file: '.\test\cmu_filter.frm'
    test.CMU_HONOR
    error    : Incorrect information in file: '.\test\cmu_honor.frm'
    test.CMU_LOG
    error    : Incorrect information in file: '.\test\cmu_log.frm'
    test.CMU_MAIN
    error    : Incorrect information in file: '.\test\cmu_main.frm'
    test.CMU_MEMBER
    error    : Incorrect information in file: '.\test\cmu_member.frm'
    test.CMU_NOTIFY
    error    : Incorrect information in file: '.\test\cmu_notify.frm'
    test.CMU_REPLY
    error    : Incorrect information in file: '.\test\cmu_reply.frm'
    test.CMU_SPACE
    error    : Incorrect information in file: '.\test\cmu_space.frm'
    test.CMU_TOPIC
    error    : Incorrect information in file: '.\test\cmu_topic.frm'
    test.EXAACT
    error    : Incorrect information in file: '.\test\exaact.frm'
    test.EXAACTPUR
    error    : Incorrect information in file: '.\test\exaactpur.frm'
    test.acattrib
    error    : Incorrect information in file: '.\test\acattrib.frm'
    test.acity
    error    : Incorrect information in file: '.\test\acity.frm'
    test.acredit
    error    : Incorrect information in file: '.\test\acredit.frm'
    test.adepart
    error    : Can't open file: 'adepart.MYD'. (errno: 143)
    test.adepartcont
    error    : Incorrect information in file: '.\test\adepartcont.frm'
    test.adepartinfo
    error    : Incorrect information in file: '.\test\adepartinfo.frm'
    test.adeskset
    error    : Incorrect information in file: '.\test\adeskset.frm'
    test.afunlist
    error    : Incorrect information in file: '.\test\afunlist.frm'
    test.alicense
    error    : Incorrect information in file: '.\test\alicense.frm'
    test.alimit
    error    : Incorrect information in file: '.\test\alimit.frm'
    test.anation
    error    : Incorrect information in file: '.\test\anation.frm'
    test.aonline
    error    : Incorrect information in file: '.\test\aonline.frm'
    test.aplacard
    error    : Incorrect information in file: '.\test\aplacard.frm'
    test.aprovin
    error    : Incorrect information in file: '.\test\aprovin.frm'
    test.archives
    error    : Incorrect information in file: '.\test\archives.frm'
    test.archivesnote
    error    : Incorrect information in file: '.\test\archivesnote.frm'
    test.archivestype
    error    : Incorrect information in file: '.\test\archivestype.frm'
    test.asfavori
    error    : Incorrect information in file: '.\test\asfavori.frm'
    test.astuff
    error    : Incorrect information in file: '.\test\astuff.frm'
    test.asyscode
      

  3.   

    如果是MYISAM的表.试试hy2003fly() 的方法.
    如果是INNODB的表.就完了.
      

  4.   

    是MYISAM的表但hy2003fly() 的方法也没好用
      

  5.   

    把日志文件ib_logfile删掉再启动mysql(请注意备份)。
    注:删log之前确保innodb_fast_shutdown的值不是2,如果是2则需要先改为1,然后重启使之生效,再关闭mysql删log文件。其默认值是1。
      

  6.   

    把日志文件ib_logfile删掉再启动mysql(请注意备份)。注:删log之前确保innodb_fast_shutdown的值不是2,如果是2则需要先改为1,然后重启使之生效,再关闭mysql删log文件。其默认值是1。
      

  7.   

    http://qroom.blogspot.com/2007/03/incorrect-information-in-file.html