报错问题:InnoDB: Error: log file ./ib_logfile0 is of different size

在使用xtrabackup对mysql执行备份操作的时候,出现下面的报错:
.....................
xtrabackup: innodb_log_file_size = 50331648
InnoDB: Error: log file ./ib_logfile0 is of different size 33554432 bytes
InnoDB: than specified in the .cnf file 50331648 bytes!

解决办法:
可以计算一下33554432的大小,33554432/1024/1024=32
查看my.cnf配置文件的innodb_log_file_size参数配置:
innodb_log_file_size = 32M

需要调整这个文件的大小
再计算一下50331648的大小,50331648/1024/1024=48

修改my.cnf配置文件的下面一行参数值:
innodb_log_file_size = 48M

然后重启mysql

时间: 2024-12-06 11:41:10

报错问题:InnoDB: Error: log file ./ib_logfile0 is of different size的相关文章

InnoDB: Error: log file .\ib_logfile0 is of different size 0 10485760 bytes

启动WAMP Server的时候报例如以下的错误: 140618 23:12:32 [Note] Plugin 'FEDERATED' is disabled. 140618 23:12:32 InnoDB: The InnoDB memory heap is disabled 140618 23:12:32 InnoDB: Mutexes and rw_locks use Windows interlocked functions 140618 23:12:32 InnoDB: Compres

mariadb:InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes

mariadb 启动中 InnoDB: Error: log file ./ib_logfile0 is of different size 0 起因:线上正在运行的系统,因为需要调整性能,变更了my.cnf参数的innodb_log_file_size大小,重启MySQL时err日志输出如下InnoDB: Error: log file ./ib_logfile0 is of different size 0 xxxx bytes 停掉mariadb 解决办法:移除原有ib_logfile#m

xtrabackup备份MySQL报错:InnoDB: Error number 24 means 'Too many open files'

xtrabackup备份MySQL报错:InnoDB: Error number 24 means 'Too many open files' 1.使用xtrabackup备份MySQL时出现如下报错: 190228 00:30:01 >> log scanned up to (88343615848) xtrabackup: Generating a list of tablespaces InnoDB: Allocated tablespace ID 2 for mysql/plugin,

Nginx启动报错: could not open error log file: open() &q

启动nginx报如下错误: nginx: [alert] could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (13:Permission denied) 2014/08/04 20:35:45 [emerg] 17114#0: open() "/usr/local/nginx/logs/access.log" failed (13: Permission de

android studio创建模拟器报错解决 emulator: ERROR: This AVD's configuration is missing a kernel file!!

android studio创建模拟器报错 emulator: ERROR: This AVD's configuration is missing a kernel file!! 的解决办法 原因有二:1 没有,解决办法通过sdk mangager 下载 2 找不到,解决办法看系统环境变量path(此种情况多数发生在android Studio和EclipseADT同时存在的情况下) 原因是在刚刚安装完毕的androidstudio的sdk目录下没有system-image目录,也许有但没有相

mysql修改后启动my.cnf报错Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).

mysql中文乱码解决 mysql修改my.cnf后启动报错Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid). 这里简单明了地说下: 对于mysql5.5版本,需要在/etc/mysql/my.cnf做如下修改: [client]下添加: default-character-set = utf8 [mysqld]下添加: cha

ORA-01157报错"cannot identify/lock data file"解决

sqlplus以管理员方式接入数据库,启动时出现报错,如下: > sqlplus "/as sysdba" SQL> startup ...... ORA-01157: cannot identify/lock data file 8 - see DBWR trace file ORA-01110: data file 8: '/tmp/test.dbf' 查看数据库日志文件alert_$ORACLE_SID.log,存在对应报错信息: Errors in file ...

【翻译自mos文章】Weblogic AdminServer 启动fail,报错为"unable to get file lock, will retry"

Weblogic AdminServer 启动fail,报错为"unable to get file lock, will retry" 参考原文: Weblogic AdminServer fails with "unable to get file lock, will retry" error message (Doc ID 1613945.1) 适用于: Oracle WebLogic Server - Version 8.1 and later Infor

tomcat下部署了多个项目启动报错java web error:Choose unique values for the 'webAppRootKey' context-param in your web.xml files

应该是tomcat下部署了多个项目且都使用log4j. <!--如果不定义webAppRootKey参数,那么webAppRootKey就是缺省的"webapp.root".但最好设置,以免项目之间的名称冲突. 定义以后,在Web Container启动时将把ROOT的绝对路径写到系统变量里. 然后log4j的配置文件里就可以用${webName.root }来表示Web目录的绝对路径,把log文件存放于webapp中. 此参数用于后面的“Log4jConfigListener”