Home » Technology » Howto

How to Enable, Start, Restart and Stop MySql in Fedora 16 ?

Submitted by Vidhu on Dec 31 2011 Views: 6518 | Subscribe

How to Enable, Start, Restart and Stop MySql in Fedora 16 ?How to Enable/Start mysqld ?

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

Articles Related to Linux :

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


Tags: How to Enable mysqld on Fedora 16, Start mysqld, mysqld start using systemctl, stop mysqld , how to mysqld start

Get email updates. Virus Removal Tips, News, How to, Threat Alerts.

Leave a comment!