bertvv / ansible-role-mariadb

Install MariaDB on RHEL/CentOS 7 or Fedora.
https://galaxy.ansible.com/bertvv/mariadb/
Other
144 stars 108 forks source link

Need to run mariadb-install-db for newer versions of MariaDB on RPM systems #66

Open angwe opened 6 months ago

angwe commented 6 months ago

The role tries to start the MariaDB server before it is properly initialized.

When running the role for 10.11, it would crash out at the "starting service" line because none of the "mysql" authentication/authorization tables existed yet.

After running mariadb-install-db --user=XXXX --group=XXXX --datadir=/PATH/TO/DATA by hand on the target machine, the rest of the role ran perfectly.

I suspect previous iterations of the yum install process might have run this by default?

I'm running the role against a RHEL 8 machine to install MariaDB 10.11 (the current long-term support version).