【无标题】You can set innodb_force_recovery=1 in my.cnf to force InnoDB: a startup if you are trying to r

2024-03-12 12:38

本文主要是介绍【无标题】You can set innodb_force_recovery=1 in my.cnf to force InnoDB: a startup if you are trying to r,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

在配置主从之前,可以正常启动,添加复制参数后,无法启动。

注意参数:添加前和添加后不一至

innodb_data_file_path=ibdata1:200M;ibdata2:200M;ibdata3:200M;ibdata4:200M:autoextend:max:5G
innodb_temp_data_file_path =ibtmp1:200M;ibtmp2:200M;ibtmp3:200M:autoextend:max:20G

[root@mymha5 3306]# systemctl status mysqld
● mysqld.service - MySQL Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
   Active: activating (start) since Fri 2022-04-01 22:06:49 CST; 2s ago
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
 Main PID: 4459;         : 31590 (mysql.server)
    Tasks: 6
   CGroup: /system.slice/mysqld.service
           ├─  304 /mysql/app/mysql/bin/mysqld --defaults-file=/mysql/data/3306/my.cnf --basedir=/mysql/app/...
           ├─  329 sleep 1
           ├─31590 /bin/sh /mysql/app/mysql/support-files/mysql.server start
           └─31603 /bin/sh /mysql/app/mysql/bin/mysqld_safe --defaults-file=/mysql/data/3306/my.cnf --datadi...

Apr 01 22:06:49 mymha5 systemd[1]: Starting MySQL Server...

#############################################################

[root@mymha5 3306]# journalctl -xe

-- Unit mysqld.service has begun starting up.
Apr 01 22:06:20 mymha5 mysql.server[25450]: Starting MySQL.......The server quit without updating PID file (/my
Apr 01 22:06:20 mymha5 systemd[1]: mysqld.service: control process exited, code=exited status=1
Apr 01 22:06:20 mymha5 systemd[1]: Failed to start MySQL Server.
-- Subject: Unit mysqld.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit mysqld.service has failed.

##################################################

[root@mymha5 ~]# tail -f 100 /mysql/log/3306/itpuxdb-error.err

2022-04-01T22:04:25.394130+08:00 0 [Note] InnoDB: Opened 3 undo tablespaces
2022-04-01T22:04:25.394152+08:00 0 [Note] InnoDB: 3 undo tablespaces made active
2022-04-01T22:04:25.394298+08:00 0 [Note] InnoDB: Highest supported file format is Barracuda.
2022-04-01T22:04:25.401758+08:00 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-04-01T22:04:25.401781+08:00 0 [Note] InnoDB: Need to create a new innodb_temporary data file 'ibtmp3'.
2022-04-01T22:04:25.401856+08:00 0 [Note] InnoDB: Setting file './ibtmp1' size to 200 MB. Physically writing the file full; Please wait ...
2022-04-01T22:04:25.401919+08:00 0 [Note] InnoDB: Progress in MB:
 100 200
2022-04-01T22:04:25.538903+08:00 0 [Note] InnoDB: File './ibtmp1' size is now 200 MB.
2022-04-01T22:04:25.539039+08:00 0 [Note] InnoDB: Setting file './ibtmp3' size to 200 MB. Physically writing the file full; Please wait ...
2022-04-01T22:04:25.539114+08:00 0 [Note] InnoDB: Progress in MB:
 100 200
2022-04-01T22:04:25.675688+08:00 0 [Note] InnoDB: File './ibtmp3' size is now 200 MB.
2022-04-01T22:04:25.676380+08:00 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2022-04-01T22:04:25.676390+08:00 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2022-04-01T22:04:25.676610+08:00 0 [Note] InnoDB: Waiting for purge to start
2022-04-01T22:04:25.727567+08:00 0 [ERROR] InnoDB: Tablespace size stored in header is 51200 pages, but the sum of data file sizes is only 38400 pages
2022-04-01T22:04:25.727645+08:00 0 [ERROR] InnoDB: Cannot start InnoDB. The tail of the system tablespace is missing. Have you edited innodb_data_file_path in my.cnf in an InnoDB: inappropriate way, removing ibdata files from there? You can set innodb_force_recovery=1 in my.cnf to force InnoDB: a startup if you are trying to recover a badly corrupt database.
2022-04-01T22:04:25.727664+08:00 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error

这篇关于【无标题】You can set innodb_force_recovery=1 in my.cnf to force InnoDB: a startup if you are trying to r的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/801281

相关文章

poj 3050 dfs + set的妙用

题意: 给一个5x5的矩阵,求由多少个由连续6个元素组成的不一样的字符的个数。 解析: dfs + set去重搞定。 代码: #include <iostream>#include <cstdio>#include <set>#include <cstdlib>#include <algorithm>#include <cstring>#include <cm

Collection List Set Map的区别和联系

Collection List Set Map的区别和联系 这些都代表了Java中的集合,这里主要从其元素是否有序,是否可重复来进行区别记忆,以便恰当地使用,当然还存在同步方面的差异,见上一篇相关文章。 有序否 允许元素重复否 Collection 否 是 List 是 是 Set AbstractSet 否

论文翻译:ICLR-2024 PROVING TEST SET CONTAMINATION IN BLACK BOX LANGUAGE MODELS

PROVING TEST SET CONTAMINATION IN BLACK BOX LANGUAGE MODELS https://openreview.net/forum?id=KS8mIvetg2 验证测试集污染在黑盒语言模型中 文章目录 验证测试集污染在黑盒语言模型中摘要1 引言 摘要 大型语言模型是在大量互联网数据上训练的,这引发了人们的担忧和猜测,即它们可能已

多路转接之select(fd_set介绍,参数详细介绍),实现非阻塞式网络通信

目录 多路转接之select 引入 介绍 fd_set 函数原型 nfds readfds / writefds / exceptfds readfds  总结  fd_set操作接口  timeout timevalue 结构体 传入值 返回值 代码 注意点 -- 调用函数 select的参数填充  获取新连接 注意点 -- 通信时的调用函数 添加新fd到

InnoDB的多版本一致性读的实现

InnoDB是支持MVCC多版本一致性读的,因此和其他实现了MVCC的系统如Oracle,PostgreSQL一样,读不会阻塞写,写也不会阻塞读。虽然同样是MVCC,各家的实现是不太一样的。Oracle通过在block头部的事务列表,和记录中的锁标志位,加上回滚段,个人认为实现上是最优雅的方式。 而PostgreSQL则更是将多个版本的数据都放在表中,而没有单独的回滚段,导致的一个结果是回滚非

Android set Tag, findViewWithTag使用

设置了tag为“principal”的view ImageView principal = (ImageView) findViewById(R.id.imagen_home_0);principal.setTag("principal"); 在其它地方获取,获取已经设置了tag为“principal”的view LayoutInflater inflater = LayoutInflate

MySQL技术内幕_innodb存储引擎

MySQL技术内幕_innodb存储引擎 INNODB innodb中如果表没有主键 表是否由 非空唯一键,有则该字段为主键没有,则自动创建一个6字节大小的指针 innodb存储引擎的所有数据都存储在表空间中,表空间由段,区,页(块)组成。 如果启用了 innodb_file_per_table, 则每张表内的数据可以单独放在一个表空间中即使启用了上面参数,共享表空间也会因为 系统事务信息

C++ STL关联容器Set与集合论入门

1. 简介 Set(集合)属于关联式容器,也是STL中最实用的容器,关联式容器依据特定的排序准则,自动为其元素排序。Set集合的底层使用一颗红黑树,其属于一种非线性的数据结构,每一次插入数据都会自动进行排序,注意,不是需要排序时再排序,而是每一次插入数据的时候其都会自动进行排序。因此,Set中的元素总是顺序的。 Set的性质有:数据自动进行排序且数据唯一,是一种集合元素,允许进行数学上的集合相

Eclipse或MyEclipse中Java Working Set管理项目

随着学习JAVA的时间的越来越久,项目也越来越多,Eclipse或MyEclipse界面中显示一堆! 每次工作使用到的项目肯定不会太多...... 每次从这么大数量的工程当中找到自己要使用的, 必须大规模的滚动滚动条...... 图片一   Project Explorer中:    图片二:Package Explorer中: 这样就好找很多了,分类放!

STL set整理

#include<set>#include<cstdio>#include<iterator>#include<iostream>#include<algorithm>using namespace std;//set 集合的操作//multisetset<int>Set1;set<int>Set2;set<int>Set3;/*begin() 返回指向第一个元素的迭代器