1、事故缘由
2020年04月需要搬迁机房,将虚拟机直接挂起,在当天搬迁完后,继续运行虚拟机,发现服务没起来,mysql启动失败。
2、出错日志
mysql启动报错如下:/var/log/mysqld.log
2020-04-20T02:27:01.161441Z 0 [Warning] Could not increase number of max_open_files to more than 5000 (request: 65535)
2020-04-20T02:27:01.162336Z 0 [Warning] Changed limits: table_open_cache: 1995 (requested 2000)
2020-04-20T02:27:01.386153Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-04-20T02:27:01.388194Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.25) starting as process 74103 ...
2020-04-20T02:27:01.395664Z 0 [Note] InnoDB: PUNCH HOLE support available
2020-04-20T02:27:01.395810Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-04-20T02:27:01.395828Z 0 [Note] InnoDB: Uses event mutexes
2020-04-20T02:27:01.395840Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2020-04-20T02:27:01.395850Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-04-20T02:27:01.395947Z 0 [Note] InnoDB: Using Linux native AIO
2020-04-20T02:27:01.397732Z 0 [Note] InnoDB: Number of pools: 1
2020-04-20T02:27:01.398049Z 0 [Note] InnoDB: Using CPU crc32 instructions
2020-04-20T02:27:01.401955Z 0 [Note] InnoDB: Initializing buffer pool, total size = 12G, instances = 8, chunk size = 128M
2020-04-20T02:27:02.521202Z 0 [Note] InnoDB: Completed initialization of buffer pool
2020-04-20T02:27:02.589960Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-04-20T02