Category Covered

how to start stop mysql using shell script or ssh

To start mysql using shell script
[root@WAP ~]# service mysqld start
or
[root@WAP ~]# /etc/init.d/mysql start


To stop mysql using shell script
[root@WAP ~]# service mysqld stop
or
[root@WAP ~]# /etc/init.d/mysql stop

To restart mysql using shell script

[root@WAP ~]# service mysqld restart
or
[root@WAP ~]# /etc/init.d/mysql restart