Write a query to stop MYSQL in unix?

asked Sep 13, 2013 in MYSQL by rajesh
edited Sep 12, 2013
0 votes

1 Answer

0 votes
The query to stop MySQL is quite useful when an error is occurred or when data has to be saved from any mishap. It is also used for retrieving the root password because it is either easily forgotten or misplaced. To stop the service the following command is required: 
1) Stop MySQL
[root@ tmp]# service mysqld stop
Stopping MySQL: [ OK ]
[root@ tmp]#
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013