Senin, 12 November 2012

Enable and Start Mysql on Fedora 16/17

Sumber: http://www.ebugg-i.com/technology/howto/how-to-enable-start-restart-and-stop-mysql-in-fedora-16.html


1. Enable MySql using systemctl

** systemctl - Control the systemd system and service manager

[root@stk /]# su
[root@stk /]# systemctl enable mysqld.service

2. Start mysqld using this command "systemctl start mysqld.service"

[root@stk /]# systemctl start mysqld.service
Check the status of mysqld service using "systemctl status mysqld.service"

How to Check mysqld Status ?

[root@stk ~]# systemctl status mysqld.service
mysqld.service - MySQL database server
Loaded: loaded (/lib/systemd/system/mysqld.service; disabled)
Active: active (running) since Sat, 31 Dec 2011 18:26:00 +0400; 3h 0min ago
Main PID: 1791 (mysqld)
CGroup: name=systemd:/system/mysqld.service
* 1791 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --log-error=/var/log/mysqld.log --pid-file=/var/run/...

How to Restart mysqld ?


Restart mysqld service : "systemctl restart mysqld.service"

[root@stk /]# systemctl restart mysqld.service
Stop mysqld service : "systemctl restart mysqld.service"
[root@stk /]# systemctl stop mysqld.service

Tidak ada komentar:

Posting Komentar