我无法启动 mariadb/mysql,因为 innodb 文件在硬关机后损坏了。现在我处理完后得到了这个。我/var/lib/mysql
用备份副本替换了整个目录,然后得到了这个。
Apr 29 23:43:38 host systemd[1]: Failed to start MariaDB database server.
Apr 29 23:43:47 host systemd[1]: Starting MariaDB database server...
Apr 29 23:43:47 host systemd[1]: mariadb.service failed to run 'start-pre' task: Structure needs cleaning
Apr 29 23:43:47 host systemd[1]: Failed to start MariaDB database server.
Apr 29 23:46:33 host systemd[1]: Starting MariaDB database server...
Apr 29 23:46:33 host systemd[1]: mariadb.service failed to run 'start-pre' task: Structure needs cleaning
Apr 29 23:46:33 host systemd[1]: Failed to start MariaDB database server.
Apr 30 00:48:43 host systemd[1]: Starting MariaDB database server...
Apr 30 00:48:43 host systemd[1]: mariadb.service failed to run 'start-pre' task: Structure needs cleaning
Apr 30 00:48:43 host systemd[1]: Failed to start MariaDB database server.
答案1
我修复了这个问题,现在服务就是无法启动!刚刚重新安装了 mariadb RPM,它又可以正常工作了。我没有使用 YUM,因为有依赖关系