zoukankan      html  css  js  c++  java
  • 动态:添加表空间定义文件出错不能添加第2个文件 innodb_data_file_path = /data1/ibdata1:10M:autoextend;/data1/ibdata2:1000M:autoextend

    遇到问题:
    动态:添加表空间定义文件出错不能添加第2个文件
    innodb_data_file_path = /data1/ibdata1:10M:autoextend;/data1/ibdata2:1000M:autoextend





    InnoDB: Error: data file ./ibdata1 is of a different size
    InnoDB: 1152 pages (rounded down to MB)
    InnoDB: than specified in the .cnf file 640 pages!
    130426  8:46:08 InnoDB: Could not open or create data files.
    130426  8:46:08 InnoDB: If you tried to add new data files, and it failed here,
    130426  8:46:08 InnoDB: you should now edit innodb_data_file_path in my.cnf back
    130426  8:46:08 InnoDB: to what it was, and remove the new ibdata files InnoDB created
    130426  8:46:08 InnoDB: in this failed attempt. InnoDB only wrote those files full of
    130426  8:46:08 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
    130426  8:46:08 InnoDB: remove old data files which contain your precious data!
    130426  8:46:08 [ERROR] Plugin 'InnoDB' init function returned error.
    130426  8:46:08 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    130426  8:46:08 [ERROR] Unknown/unsupported storage engine: InnoDB
    130426  8:46:08 [ERROR] Aborting

    原因:表格空己经涨到18M,但是指定10M出错


    #bug
    innodb_data_file_path = ibdata1:10M;ibdata2:10M:autoextend

    修改:




    [root@james data1]# ll -h
    total 30M
    drwx------ 2 mysql mysql 4.0K Apr 26 08:04 demo
    -rw-rw---- 1 mysql mysql  18M Apr 26 09:17 ibdata1



    innodb_data_file_path = ibdata1:18M;ibdata2:10M:autoextend


  • 相关阅读:
    Using Resource File on DotNet
    C++/CLI VS CSharp
    JIT VS NGen
    [Tip: disable vc intellisense]VS2008 VC Intelisense issue
    UVa 10891 Game of Sum(经典博弈区间DP)
    UVa 10723 Cyborg Genes(LCS变种)
    UVa 607 Scheduling Lectures(简单DP)
    UVa 10401 Injured Queen Problem(简单DP)
    UVa 10313 Pay the Price(类似数字分解DP)
    UVa 10635 Prince and Princess(LCS N*logN)
  • 原文地址:https://www.cnblogs.com/kaka100/p/3046291.html
Copyright © 2011-2022 走看看