添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

InnoDB: Server exits.

2019-11-11T04:36:44.028428Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-11-11T04:36:44.028552Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2019-11-11T04:36:44.028586Z 0 [Note] /usr/local/mysql5.7/bin/mysqld (mysqld 5.7.26) starting as process 2645 ...
2019-11-11T04:36:44.034436Z 0 [Note] InnoDB: PUNCH HOLE support available
2019-11-11T04:36:44.034480Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-11-11T04:36:44.034489Z 0 [Note] InnoDB: Uses event mutexes
2019-11-11T04:36:44.034495Z 0 [Note] InnoDB: GCC builtin __sync_synchronize() is used for memory barrier
2019-11-11T04:36:44.034501Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-11-11T04:36:44.034507Z 0 [Note] InnoDB: Using Linux native AIO
2019-11-11T04:36:44.035118Z 0 [Note] InnoDB: Number of pools: 1
2019-11-11T04:36:44.035260Z 0 [Note] InnoDB: Using CPU crc32 instructions
2019-11-11T04:36:44.037380Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-11-11T04:36:44.047057Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-11-11T04:36:44.049625Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-11-11T04:36:44.062850Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2019-11-11T04:36:44.067094Z 0 [ERROR] InnoDB: Trying to access page number 4294967295 in space 0, space name innodb_system, which is outside the tablespace bounds. Byte offset 0, len 16384, i/o type read. If you get this error at mysqld startup, please check that your my.cnf matches the ibdata files that you have in the MySQL server.
2019-11-11T04:36:44.067117Z 0 [ERROR] InnoDB: Server exits.

解决方法:
参考:

cd /var/lib/mysql #进入mysql库目录
mkdir old #创建一个备份目录
mv ib* old #将ib库移入备份目录
/etc/init.d/mysql start #启动MySQL

this is incompatible with sql_mode=only_full_group_by

this is incompatible with sql_mode=only_full_group_by

解决方法:
1、查看当前sql_mode

select @@GLOBAL.sql_mode;

在这里插入图片描述
2、修改配置文件my.cnf,末尾加上该行代码之后,重启MySQL服务。

sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

3、再次查看sql_mode
在这里插入图片描述

初始化报错

./mysqld --initialize --user=mysql --basedir=/usr/local/mysql-5.7 --datadir=/usr/local/mysql-5.7/data
./mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
yum install -y libaio
./mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory
yum -y install numactl.x86_64
2019-06-21T09:17:21.968768Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-06-21T09:17:21.974348Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2019-06-21T09:17:21.974380Z 0 [Note] ./mysqld (mysqld 5.7.26) starting as process 85 ...
2019-06-21T09:17:21.977921Z 0 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
2019-06-21T09:17:21.977946Z 0 [ERROR] Aborting
2019-06-21T09:17:21.977963Z 0 [Note] Binlog end
2019-06-21T09:17:21.979436Z 0 [Note] ./mysqld: Shutdown complete
通过在命令后面加上--user=root 进行强制使用root账号启动
2019-06-21T09:22:43.246267Z 0 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Table 'mysql.plugin' doesn't exist
2019-06-21T09:22:43.259726Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2019-06-21T09:22:43.260023Z 0 [ERROR] Too many arguments (first extra is '–initialize').
2019-06-21T09:22:43.260031Z 0 [Note] Use --verbose --help to get a list of available options!
2019-06-21T09:22:43.260060Z 0 [ERROR] Aborting
1、删除 rm -rf /usr/local/mysql-5.7/data/*
2、执行表初始化命令 ./mysql_install_db --user=mysql --basedir=/usr/local/mysql-5.7 --datadir=/usr/local/mysql-5.7/data
3、初始化 ./mysqld --initialize --user=mysql --basedir=/usr/local/mysql-5.7 --datadir=/usr/local/mysql-5.7/data --user=root
				
5.7版本的MySQL下载之后,在安装目录下面没有data文件夹,net start mysql 命令无法启动mysql 服务。①使用mysqld –initialize 命令初始化data文件夹②使用net start mysql 启动mysql 服务即可启动成功修改密码出现错误问题: update mysql.user set password=password(‘root’) where
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 解决方案:在/etc/my.cnf的[mysqld]配置文件添加:explicit_defaults_for_timestamp=true /usr/local/mysql/bin/my.
前提:你的Linux环境中要有yum源,使用命令yum --version 测试一下,没有就安装一下即可 文章目录一、检查系统环境二、下载并安装MySQL三、配置MySQL五、在防火墙中添加3306端口六、修改配置文件编码7、远程连接8、客服端连接9、常用命令10、更新MySQL 一、检查系统环境 1、检查Centos版本 cat /etc/redhat-release 2、删除之前安装MySQL,确保这三个命令都没有查询出任何信息 rpm -q 参数不正确 如果公共表空间文件或 innodb 日志文件的大小与配置文件中的大小不一致,会导致启动不了,即 1 ) innodb_log_file_size 参数的大小与 实际文件 ib_logfile0 的大小不一致 2 ) innodb_data_file_path 参数的大小与实际文件 ibdata1 的大小不一致 ERROR 1813 (HY000): Tablespace ‘`库名`.`表名`‘ exists. 出现这个问题的大部分原因,在使用 InnoDB 引擎的数据库中,所有已经存在的表都使在使用 InnoDB 引擎的数据库中,所有已经存在的表都使用两个文件保存。假设表名为 test1,则在数据库的数据目录下会有两个文件: test1.frm 文件,存储数据表的定义信息 test1.ibd 文件..
之前电脑里装过mysql的免安装版本,就是官网下载的zip包,解压之后在bin目录下按照mysqld --install 方式来安装的,但是之前配置的时候可能有些问题,打算重新安装一个,结果遇到了如下的几个问题: 1.老版本的mysql无法删除 首先在“控制面板” 中卸载之前安装过的mysql; 之后把老的本地的mysql文件夹删除,结果遇到报错无法删除,文件夹正在使用或者在别的程序中打开。 解决方法: 按 ctrl + shift + esc ,进入性能管理器
InnoDB Data-at-Rest Encryption InnoDB supports data-at-rest encryption for file-per-table tablespaces, general tablespaces, the mysql system tablespace, redo logs, and undo logs. As of MySQL 8.0.16, setting an encryption default for schemas and general tab
这个问题通常是由于使用 xtrabackup 备份时,备份数据的时候有写入操作,导致备份出来的数据不一致而引发的。解决方法如下: 1. 检查备份的语句是否正确,可以使用如下命令检查语法: xtrabackup --backup --target-dir=/备份目录 --user=用户名 --password=密码 --host=主机名 --port=端口号 2. 如果备份语句正确,可以尝试使用 `--no-lock` 参数来进行备份,该参数可以在不锁表的情况下进行备份,但是可能会导致备份的数据不一致。 xtrabackup --backup --target-dir=/备份目录 --user=用户名 --password=密码 --host=主机名 --port=端口号 --no-lock 3. 如果以上两个方法都无法解决问题,可以尝试升级 MySQL 版本,或者使用其他备份工具进行备份。 希望这些方法可以帮助到你解决问题。
qq_40118416: 您好,最后一步向orderer发送配置更新的时候报错:Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'byfn-sys-channel': error authorizing update: error validating DeltaSet: attempt to set key [Value] /Channel/Consortiums/TestConsortium/Org1MSP/MSP to version 0, but key is at version 0 这是因为啥呀