版本5.0,日志关闭数据库被清空,表还在,ibdata1,ib_logfile0,ib_logfile1 在,请问还有救吗?

解决方案 »

  1.   

    二进制日志没有打开?没有备份、INNODB引擎?如果没有,无办法了
      

  2.   

    如果有binlog,还有机会。否则,赶紧停止数据库服务,找磁盘恢复专家。
      

  3.   


    二进制日志没有打开,没有备份,innodb,myisam都有
      

  4.   

    my.ini
    [client]
    port=3306
    [mysql]
    default-character-set=gb2312
    [mysqld]
    port=3306
    basedir="C:/Program Files/MySQL/MySQL Server 5.0/"
    datadir="C:/Program Files/MySQL/MySQL Server 5.0/Data/"
    default-character-set=gb2312
    default-storage-engine=INNODB
    max_connections=100
    query_cache_size=0
    table_cache=256
    tmp_table_size=5M
    thread_cache_size=8
    myisam_max_sort_file_size=100G
    myisam_max_extra_sort_file_size=100G
    myisam_sort_buffer_size=8M
    key_buffer_size=8M
    read_buffer_size=64K
    read_rnd_buffer_size=256K
    sort_buffer_size=212K
    innodb_additional_mem_pool_size=2M
    innodb_flush_log_at_trx_commit=1
    innodb_log_buffer_size=1M
    innodb_buffer_pool_size=8M
    innodb_log_file_size=10M
    innodb_thread_concurrency=8
      

  5.   

    谢谢个位,已经找到9月测试时的备份,丢了一个月数据。总结,1.做好备份,2.不能给新手root账户