Describes how to manage MariaDB using SysVinit scripts (mysql.server), common on older Linux distributions, using commands like `service` and `chkconfig`.
sysVinit is one of the most common service managers. On systems that use sysVinit, the mysql.server script is normally installed to /etc/init.d/mysql.
The service can be interacted with by using the service command.
On RHEL/CentOS and other similar distributions, the command can be used to enable the MariaDB Server process at boot:
On Debian and Ubuntu and other similar distributions, the command can be used:
If you install MariaDB from or from a that does not install
automatically, and if you are on a system that uses , then you can manually install mysql.server with . See for more information.
When using with sysVinit, the first node in a cluster has to be started with service mysql bootstrap. See for more information.
This page is licensed: CC BY-SA / Gnu FDL
chkconfig --add mysql
chkconfig --level 345 mysql onupdate-rc.d mysql defaultsservice mysql startservice mysql stopservice mysql restartservice mysql status