> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/server-management/starting-and-stopping-mariadb/sysvinit.md).

# sysVinit

[sysVinit](https://en.wikipedia.org/wiki/Init#SysV-style) is one of the most common service managers. On systems that use [sysVinit](https://en.wikipedia.org/wiki/Init#SysV-style), the [mysql.server](/docs/server/server-management/starting-and-stopping-mariadb/mysql-server.md) 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](https://linux.die.net/man/8/service) command.

### Starting the MariaDB Server Process on Boot

On RHEL/CentOS and other similar distributions, the [chkconfig](https://linux.die.net/man/8/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](https://manpages.debian.org/wheezy/sysv-rc/update-rc.d.8.en.html) 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](/docs/server/server-management/install-and-upgrade-mariadb/compiling-mariadb-from-source.md) or from a [binary tarball](/docs/server/server-management/install-and-upgrade-mariadb/installing-mariadb/binary-packages/installing-mariadb-binary-tarballs.md) that does not install [mysql.server](/docs/server/server-management/starting-and-stopping-mariadb/mysql-server.md)\
automatically, and if you are on a system that uses [sysVinit](/docs/server/server-management/starting-and-stopping-mariadb/sysvinit.md), then you can manually install `mysql.server` with [sysVinit](/docs/server/server-management/starting-and-stopping-mariadb/sysvinit.md). See [mysql.server: Manually Installing with SysVinit](/docs/server/server-management/starting-and-stopping-mariadb/mysql-server.md) for more information.

## SysVinit and Galera Cluster

### Bootstrapping a New Cluster

When using [Galera Cluster](/docs/galera-cluster/galera-cluster-quickstart-guides/mariadb-galera-cluster-guide.md) 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](/docs/galera-cluster/galera-management/installation-and-deployment/getting-started-with-mariadb-galera-cluster.md#bootstrapping-a-new-cluster) for more information.

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mariadb.com/docs/server/server-management/starting-and-stopping-mariadb/sysvinit.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
