Я пытаюсь переустановить MariaDB, так как не могу перезапустить службу . Использование Centos 7.6.
Ранее удаленная версия использовала yum, но в этой установке я использую RPM, поскольку я выбрал более старую версию (10.3.17), которая больше не предлагается в пакете yum.
После удаления я не удалял никаких конфигурационных файлов, кроме / home / mysql.
Mine my.cnf datadir: home / mysql
Однако при установке RPM возникла ошибка: -
# rpm -ivh MariaDB-*
Preparing... ################################# [100%]
Updating / installing...
1:MariaDB-client-10.3.17-1.el7.cent################################# [ 25%]
2:MariaDB-server-10.3.17-1.el7.cent################################# [ 50%]
Installation of system tables failed! Examine the logs in
/home/mysql for more information.
The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:
shell> /usr/bin/mysql_install_db --defaults-file=~/.my.cnf
You can also try to start the mysqld daemon with:
shell> /usr/sbin/mysqld --skip-grant-tables --general-log &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables;
Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /home/mysql that may be helpful.
The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
You can find the latest source at https://downloads.mariadb.org and
the maria-discuss email list at https://launchpad.net/~maria-discuss
Please check all of the above before submitting a bug report
at http://mariadb.org/jira
chmod: cannot access ‘/home/mysql/mysql’: No such file or directory
3:MariaDB-server-debuginfo-10.3.17-################################# [ 75%]
4:MariaDB-client-debuginfo-10.3.17-################################# [100%]
Журнал ошибок также показывает
[ERROR] /usr/sbin/mysqld: unknown variable 'err-log=/var/log/mysqld.log'
Оцените любую помощь. Большое спасибо.
Однако только что я сам решил эту проблему, удалив все RPM с помощью --deps , переименовав существующий файл my.cnf в другой и удалив папку /home/mysql. Переустановите RPM снова без проблем. В любом случае, Грейс, спасибо за ответ, который должен быть альтернативным.