OC AlmaLinux 8.7 БД MySQL 8.0
Комп выключился, так как пропало электро питание, mysql не загружается, все стояло на vmware worksation.
Как проще всего восстановить базу? готов потерять записи хоть за сутки или больше, главное настройки бы вытащить. На сервере стоял zabbix постоянно что то писал в бд, видимо в процессе записи все оборвалось и что то повредилось.
логи mysql из /var/log/mysql
/usr/libexec/mysqld(my_print_stacktrace(unsigned char const*, unsigned long)+0x41) [0x55fbc0372d91]
0000/usr/libexec/mysqld(print_fatal_signal(int)+0x30b) [0x55fbbf3d095b]
00/usr/libexec/mysqld(my_server_abort()+0x76) [0x55fbbf3d0a86]
00/usr/libexec/mysqld(my_abort()+0xe) [0x55fbc036cd7e]
0000/usr/libexec/mysqld(ut_dbg_assertion_failed(char const*, char const*, unsigned long)+0x32a) [0x55fbc05c507a]
00/usr/libexec/mysqld(+0x2258a9d) [0x55fbc0489a9d]
00/usr/libexec/mysqld(recv_recover_page_func(bool, buf_block_t*)+0x607) [0x55fbc048cd67]
00/usr/libexec/mysqld(buf_page_io_complete(buf_page_t*, bool)+0x83c) [0x55fbc06310dc]
00/usr/libexec/mysqld(fil_aio_wait(unsigned long)+0x14b) [0x55fbc073679b]
00/usr/libexec/mysqld(+0x232fd08) [0x55fbc0560d08]
000000/usr/libexec/mysqld(std::thread::_State_impl<std::thread::_Invo ker<std::tuple<Detached_thread, void (*)(unsigned long), unsigned long> > >::_M_run()+0xc8) [0x55fbc0560f18]
00/lib64/libstdc++.so.6(+0xc2ba3) [0x7f696bb2fba3]
00/lib64/libpthread.so.0(+0x81cf) [0x7f69700d11cf]
00/lib64/libc.so.6(clone+0x43) [0x7f696b146e73]
000000000000000000The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
Места вроде хватает
[root@appliance ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 17M 1.9G 1% /run
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sda2 4.0G 1.2G 2.9G 30% /
/dev/sda5 4.5G 2.2G 2.4G 48% /var/lib/mysql
/dev/sda3 1014M 40M 975M 4% /tmp
/dev/sda1 488M 50M 403M 11% /boot
tmpfs 393M 0 393M 0% /run/user/0
И еще логи
[root@appliance ~]# systemctl status mysqld.service
● mysqld.service - MySQL 8.0 database server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/mysqld.service.d
└─override.conf
Active: failed (Result: exit-code) since Thu 2023-04-20 19:49:06 +07; 26s ago
Process: 2329 ExecStopPost=/usr/libexec/mysql-wait-stop (code=exited, status=0/SUCCESS)
Process: 2307 ExecStart=/usr/libexec/mysqld --basedir=/usr (code=exited, status=2)
Process: 2270 ExecStartPre=/usr/libexec/mysql-prepare-db-dir mysqld.service (code=exited, status=0/SUCCESS)
Process: 2244 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status=0/SUCCESS)
Main PID: 2307 (code=exited, status=2)
Status: "Server startup in progress"
Apr 20 19:49:06 appliance systemd[1]: mysqld.service: Service RestartSec=100ms expired, scheduling restart.
Apr 20 19:49:06 appliance systemd[1]: mysqld.service: Scheduled restart job, restart counter is at 5.
Apr 20 19:49:06 appliance systemd[1]: Stopped MySQL 8.0 database server.
Apr 20 19:49:06 appliance systemd[1]: mysqld.service: Start request repeated too quickly.
Apr 20 19:49:06 appliance systemd[1]: mysqld.service: Failed with result 'exit-code'.
Apr 20 19:49:06 appliance systemd[1]: Failed to start MySQL 8.0 database server.
Пробовал в конфиг файл Mysql прописать innodb_force_recovery = 1 (цифры ставил от 1 до 5) не помогло, но так как с Mysql не работал может что то не так делаю