This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-14. For the latest, interactive version please visit https://mariadb.com/kb/.

sysVinit

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.

Interacting with the MariaDB Server Process

The service can be interacted with by using the service command.

Starting the MariaDB Server Process on Boot

On RHEL/CentOS and other similar distributions, the chkconfig 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.d 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

service mysql restart

Checking the Status of the MariaDB Server Process

service mysql status

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.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.