[MY-013276] [Server] Failed to set datadir to '/var/db/mysql/' (OS errno: 13 - Permission denied)

csjjpm

Contributor
Joined
Feb 16, 2015
Messages
126
Hi everyone,
I wanted to install Airsonic on my FAMP server. I was following some instructions and after installing some packages MYSQL stopped working.
I'm trying to work out what is missing. I ran mysqld from libexec and get these errors:

Code:
2020-11-08T21:27:10.371277Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead.
2020-11-08T21:27:10.371320Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider notusing this option as it' is deprecated and will be removed in a future release.
2020-11-08T21:27:10.372850Z 0 [System] [MY-010116] [Server] /usr/local/libexec/mysqld (mysqld 8.0.22) starting as process 86815
2020-11-08T21:27:10.375336Z 0 [ERROR] [MY-013276] [Server] Failed to set datadir to '/var/db/mysql/' (OS errno: 13 - Permission denied)
2020-11-08T21:27:10.375376Z 0 [ERROR] [MY-010119] [Server] Aborting
2020-11-08T21:27:10.375476Z 0 [System] [MY-010910] [Server] /usr/local/libexec/mysqld: Shutdown complete (mysqld 8.0.22)  Source distribution.


I've checked the files in /var/db/mysql and they are all owned by mysql:mysql

A pkg remove mysql80-server and then install again does not fix things.
 
Top