I have mariadb 10.1.45 on centos 7.8 cpanel v88.0.13 and when I try to upgrade to mariadb 10.3 in WHM, it shows error message:
"As of MariaDB 10.1.16, the data directory cannot reside in /home, /usr, /etc, /boot, or /root directories on systemd equipped systems. "
But 10.1.45 is later than 10.1.16 already. I had added /etc/systemd/system/mariadb.service.d/home-dir.conf some time ago with:
[Service]
ProtectHome=false
ReadWriteDirectories=/home/mysql
, also set /home/mysql in /etc/my.cnf, and it is worked fine so far.
Are there some new changes after 10.1.45, or is it just new overprotective upgrade script? If the latter, is there some workaround?
"As of MariaDB 10.1.16, the data directory cannot reside in /home, /usr, /etc, /boot, or /root directories on systemd equipped systems. "
But 10.1.45 is later than 10.1.16 already. I had added /etc/systemd/system/mariadb.service.d/home-dir.conf some time ago with:
[Service]
ProtectHome=false
ReadWriteDirectories=/home/mysql
, also set /home/mysql in /etc/my.cnf, and it is worked fine so far.
Are there some new changes after 10.1.45, or is it just new overprotective upgrade script? If the latter, is there some workaround?
Last edited: