zoukankan      html  css  js  c++  java
  • auto-extending data file ./ibdata1 is of a different size auto-extending data file ./ibdata1 is of a different size

    160315 17:08:19 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
    160315 17:08:19 [Warning] Using unique option prefix thread_cache instead of thread_cache_size is deprecated and will be removed in a future release. Please use the full name instead.
    160315 17:08:19 InnoDB: The InnoDB memory heap is disabled
    160315 17:08:19 InnoDB: Mutexes and rw_locks use GCC atomic builtins
    160315 17:08:19 InnoDB: Compressed tables use zlib 1.2.3
    160315 17:08:19 InnoDB: Initializing buffer pool, size = 4.0G
    160315 17:08:19 InnoDB: Completed initialization of buffer pool
    InnoDB: Error: auto-extending data file ./ibdata1 is of a different size
    InnoDB: 1152 pages (rounded down to MB) than specified in the .cnf file:
    InnoDB: initial 65536 pages, max 0 (relevant if non-zero) pages!
    160315 17:08:19 InnoDB: Could not open or create data files.
    160315 17:08:19 InnoDB: If you tried to add new data files, and it failed here,
    160315 17:08:19 InnoDB: you should now edit innodb_data_file_path in my.cnf back
    160315 17:08:19 InnoDB: to what it was, and remove the new ibdata files InnoDB created
    160315 17:08:19 InnoDB: in this failed attempt. InnoDB only wrote those files full of
    160315 17:08:19 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
    160315 17:08:19 InnoDB: remove old data files which contain your precious data!
    160315 17:08:19 [ERROR] Plugin 'InnoDB' init function returned error.
    160315 17:08:19 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    160315 17:08:19 [ERROR] Unknown/unsupported storage engine: InnoDB
    160315 17:08:19 [ERROR] Aborting

    160315 17:08:19 [Note] /application/mysql5.5.38/bin/mysqld: Shutdown complete

    160315 17:08:19 mysqld_safe mysqld from pid file /usr/local/mysql/data/Mysql.master.xxjy.com.pid ended

    解决:删除 ./ib_logfile0

     rm ibdata1 

    186 mv ib_logfile0 /root/tools/
    187 mv ib_logfile1 /root/tools/

    重启服务

  • 相关阅读:
    bzoj 2142 礼物——扩展lucas模板
    bzoj 4591 [Shoi2015]超能粒子炮·改——组合数前缀和
    bzoj 4403 序列统计——转化成组合数的思路
    bzoj 2982 combination——lucas模板
    bzoj 3505 [Cqoi2014]数三角形——排列组合
    bzoj 3398 [Usaco2009 Feb]Bullcow 牡牛和牝牛——前缀和优化dp / 排列组合
    bzoj 1009 [HNOI2008]GT考试——kmp+矩阵优化dp
    bzoj 2427 [HAOI2010]软件安装
    bzoj 1951 [Sdoi2010]古代猪文 ——数学综合
    bzoj4247挂饰——DP
  • 原文地址:https://www.cnblogs.com/tom-li/p/5280721.html
Copyright © 2011-2022 走看看