Answer the question
In order to leave comments, you need to log in
ISPmanager deletes /var/run/mariadb after server restart?
Updated Mysql to Mariadb 10.3 on ISPmanager Business This way .
Everything is fine. However, after a reboot, you have to run
mkdir /var/run/mariadb && mkdir /var/run/mysqld
chown -R mysql:mysql /var/run/mariadb && chown -R mysql:mysql /var/run/mysqld
Answer the question
In order to leave comments, you need to log in
/var/run is usually in tmpfs.
If you want systemd to create a directory there, then you need to add RuntimeDirectory=mariadb
. https://www.freedesktop.org/software/systemd/man/s...
That is, after the reboot, the rights of the /var/run/mysqld/ directory fly off?
https://900913.ru/2017/10/06/mysqld-sock-not-found/
In general, take a look at the instructions, everything is certainly ok there, only they forgot, let's add the whole thing to autoload for CentOS7, systemctl enable mysqld.service with mariadb is the same.
Look after the reboot the rights to the folder and who occupied the file.
as I understand the issue has not been resolved, I have been suffering for almost 3 hours, nothing helps, some crap the
first option didn’t work,
this worked, but for me this is a crooked solution
Add to /usr/lib/tmpfiles.d/initscripts .conf
d /var/run/mariadb 0755 mysql mysql -
d /var/run/mysqld 0755 mysql mysql -
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question