ITPub博客

首页 > 数据库 > MySQL > MySQL增加Innodb数据文件过程

MySQL增加Innodb数据文件过程

MySQL 作者:easons247 时间:2014-12-18 18:08:48 0 删除 编辑
my.cnf文件中,默认配置为
innodb_data_file_path = ibdata1:10M:autoextend
 目前该文件已经扩大到了1g多:
 -rw-r----- 1 mysql mysql 1470103552  4月 16 17:13 ibdata1
 修改my.cnf为
innodb_data_file_path = ibdata1:1470M;ibdata2:512M:autoextend
 重启mysql,报错:
 点击(此处)折叠或打开 
InnoDB: Error: data file ./ibdata1 is of a different size
 InnoDB: 89728 pages (rounded down to MB)
 InnoDB: than specified in the .cnf file 89600 pages!
 需要计算89728/64=1402

原载于:联动北方
全文:http://bbs.landingbj.com/t-0-248684-1.html

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30029358/viewspace-1372505/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-11-20

  • 博文量
    47
  • 访问量
    133805