FreeBSD Start / Stop / Restart MySQL Server

Unix > FreeBSD Start / Stop / Restart MySQL Server
09.12.2016 17:09:24


Наиболее часто встречающиеся слова в статье:

[following] [/usr/local/etc/rc] [d/mysql-server] [service] [/etc/rc] [FreeBSD] [command] [enabled] [mysql_enable="YES"] [Restart]


Статья:

First login as the root user. Next make sure MySQL service is enabled. Just open /etc/rc.conf file using vi text editor:
# vi /etc/rc.conf

Append / modify following line to start MySQL service:
mysql_enable="YES"

Save and close the file.

Task: Stop MySQL server on FreeBSD

Type the following command:
# /usr/local/etc/rc.d/mysql-server stop

Task: Restart MySQL server on FreeBSD

Type the following command:
# /usr/local/etc/rc.d/mysql-server stop && /usr/local/etc/rc.d/mysql-server start