[SOLVED] Start mariadb with OpenRC
Phosit - over 1 year ago -
Hi
I tried to instal mariadb as folows:
sudo pacman -S mariadb
sudo mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
sudo pacman -S mysql-openrc
Now I try to start the deamon with: "sudo rc-service mysql start". This is the console output:
egrep: warning: egrep is obsolescent; using grep -E
my_print_defaults: unknown variable 'config-file=/etc/mysql/my.cnf'
* Checking mysqld configuration for mysql ...
Could not open required defaults file: /etc/mysql/my.cnf
Fatal error in defaults handling. Program aborted
* mysql config check failed [ !! ]
* ERROR: mysql failed to start
The dir "/etc/mysql/" does not exist.
How do I start the deamon?
The mariadb --version is: mariadb Ver 15.1 Distrib 10.9.3-MariaDB, for Linux (x86_64) using readline 5.1
Replies (2)
RE: Start mariadb with OpenRC - bill-auger - over 1 year ago -
there is a new package 'mariadb-openrc' that fixes this problem - if you have 'mysql-openrc' installed now, when you run `pacman -Syu`, mysql-openrc should get replaced by the new package - otherwise just install the new package 'mariadb-openrc'
RE: Start mariadb with OpenRC - Phosit - over 1 year ago -
mariadb-openrc works. Thanks for the fix.