Mysql/mariadb "Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist"

Viewed 1796

Starting mariadb in arch linux results in "Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist" on systemctl logs

1 Answers

When installing the package, there's a notice that I didnt read about "You need to initialize the MariaDB data directory prior to starting the service. This can be done with mariadb-install-db command, e.g.: mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql" Just do that and you'll get it.

Related