S
S
Sanes2019-11-19 12:45:36
linux
Sanes, 2019-11-19 12:45:36

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

ps. If you decide to repeat. You need to edit the path in
/usr/local/mgr5/etc/ispmgrnode.conf.d/mysql.conf
replace
path mysqld /usr/libexec/mysqld with path mysqld /sbin/mysqld
Then the settings from the control panel will be available.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Radjah, 2019-11-19
@Sanes

/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...

S
Sergey, 2019-11-19
@feanor7

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.

T
tvoyadres, 2020-02-25
@tvoyadres

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 question

Ask a Question

731 491 924 answers to any question