Bootstrap FreeKB - mySQL / MariaDB - start stop and restart mySQL or MariaDB
mySQL / MariaDB - start stop and restart mySQL or MariaDB

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter 25bb10 in the box below so that we can be sure you are a human.