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 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
service mysql start
service mysql stop
service mysql restart
service mysql status
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.
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.
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/sysvinit/