sysVinit

Describes how to manage MariaDB using SysVinit scripts (mysql.server), common on older Linux distributions, using commands like `service` and `chkconfig`.

sysVinitarrow-up-right is one of the most common service managers. On systems that use sysVinitarrow-up-right, the mysql.server script is normally installed to /etc/init.d/mysql.

Interacting with the MariaDB Server Process

The service can be interacted with by using the servicearrow-up-right command.

Starting the MariaDB Server Process on Boot

On RHEL/CentOS and other similar distributions, the chkconfigarrow-up-right command can be used to enable the MariaDB Server process at boot:

chkconfig --add mysql
chkconfig --level 345 mysql on

On Debian and Ubuntu and other similar distributions, the update-rc.darrow-up-right command can be used:

update-rc.d mysql defaults

Starting the MariaDB Server Process

service mysql start

Stopping the MariaDB Server Process

service mysql stop

Restarting the MariaDB Server Process

Checking the Status of the MariaDB Server Process

Manually Installing mysql.server with SysVinit

If you install MariaDB from source or from a binary tarball that does not install mysql.server automatically, and if you are on a system that uses sysVinit, then you can manually install mysql.server with sysVinit. See mysql.server: Manually Installing with SysVinit for more information.

SysVinit and Galera Cluster

Bootstrapping a New Cluster

When using Galera Cluster with sysVinit, the first node in a cluster has to be started with service mysql bootstrap. See Getting Started with MariaDB Galera Cluster: Bootstrapping a New Cluster for more information.

This page is licensed: CC BY-SA / Gnu FDL

spinner

Last updated

Was this helpful?