Error: PHP exec mysql stop
Posted: Tue Sep 11, 2007 7:29 am
My script look as below:-
The result:
mysql not running? (check /var/db/mysql/v3b.dnsvine.com.pid).
If i run "/usr/local/etc/rc.d/mysql-server stop" on the server, mysql could be stopped fine. What is wrong?
Code: Select all
<?php
$output = shell_exec('/usr/local/etc/rc.d/mysql-server stop');
echo "<pre>$output</pre>";
?>mysql not running? (check /var/db/mysql/v3b.dnsvine.com.pid).
If i run "/usr/local/etc/rc.d/mysql-server stop" on the server, mysql could be stopped fine. What is wrong?