mySQL / MariaDB - start stop and restart mySQL or MariaDB

by
Jeremy Canfield |
Updated: April 06 2021
| mySQL / MariaDB articles
If your system is using systemd, use the systemctl command can be used to enable or display, start or stop, and return the status of mySQL or MariaDB.
systemctl enable mysql
systemctl disable mysql
systemctl start mysql
systemctl stop mysql
systemctl status mysql
systemctl reload mysql
If your system is using init, use the chkconfig and service commands can be used.
chkconfig mysql on
chkconfig mysql off
service mysql start
service mysql stop
service mysql status
service mysql reload
Did you find this article helpful?
If so, consider buying me a coffee over at