我们使用 Mageia 3 的硬盘出现了坏块问题。我们仍然可以阅读它,但不能启动它。我将此磁盘安装为辅助磁盘(在另一台使用 Fedora 20 Gnome 的计算机上)。我想保存旧磁盘的数据库(包含 Drupal 网站),所以我在 Mageia 4 的新启动硬盘上安装了 mariadb 和 phpmyadmin 包,设置与旧磁盘相同的密码(我不知道MariaDB 密码存储位置),将配置文件 /etc/my.cnf 和文件夹 /var/lib/mysql 复制到新磁盘。但是 mysqld 拒绝启动。我明白了
# systemctl status mysqld.service
mysqld.service - MySQL database server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)
Active: failed (Result: start-limit) since Wed 2014-03-12 18:08:35 ULAT; 2s ago
Process: 20618 ExecStartPost=/usr/sbin/mysqld-wait-ready $MAINPID (code=exited, status=1/FAILURE)
Process: 20245 ExecStart=/usr/bin/mysqld_safe --nowatch (code=exited, status=0/SUCCESS)
Process: 20228 ExecStartPre=/usr/sbin/mysqld-prepare-db-dir (code=exited, status=0/SUCCESS)
Main PID: 20617 (code=exited, status=1/FAILURE)
Mar 12 18:08:35 Dell-graphist systemd[1]: Failed to start MySQL database server.
Mar 12 18:08:35 Dell-graphist systemd[1]: Unit mysqld.service entered failed state.
Mar 12 18:08:35 Dell-graphist systemd[1]: mysqld.service holdoff time over, scheduling restart.
Mar 12 18:08:35 Dell-graphist systemd[1]: Stopping MySQL database server...
Mar 12 18:08:35 Dell-graphist systemd[1]: Starting MySQL database server...
Mar 12 18:08:35 Dell-graphist systemd[1]: mysqld.service start request repeated too quickly, refusing to start.
Mar 12 18:08:35 Dell-graphist systemd[1]: Failed to start MySQL database server.
Mar 12 18:08:35 Dell-graphist systemd[1]: Unit mysqld.service entered failed state.
还是在我的 Fedora 计算机上配置 MariaDB 以读取旧磁盘数据库并生成 .sql 文件更好?如果是这样,如何为此配置 MariaDB?
如果你能帮忙,谢谢。