Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用php启动远程MySQL服务器_Php_Mysql_Apache_Centos - Fatal编程技术网

使用php启动远程MySQL服务器

使用php启动远程MySQL服务器,php,mysql,apache,centos,Php,Mysql,Apache,Centos,我目前使用承载MySQL的VPS来帮助减少主服务器的负载。有时,SQL server会因为收到的通信量而崩溃 我想要一个小的PHP脚本,将启动远程服务器。我已经有了一种检测SQL server何时不可用的方法,我只需要一种执行/etc/init.d/mysql start的方法

我目前使用承载MySQL的VPS来帮助减少主服务器的负载。有时,SQL server会因为收到的通信量而崩溃

我想要一个小的PHP脚本,将启动远程服务器。我已经有了一种检测SQL server何时不可用的方法,我只需要一种执行
/etc/init.d/mysql start

的方法