23
11
2017

Automatically restart MySQL

Kategorisi : Mysql

#!/bin/bash
PATH=/usr/sbin:/usr/bin:/sbin:/bin
if [[ ! “$(/usr/sbin/service mysql status)” =~ “start/running” ]]
then
echo ” The MySQL service on the server has been stopped. It has now been restarted.” | mail -s ” MySQL has been restarted” 111@111.com
sudo service mysql start
fi


Login gerekli Giriş .


photo

Php, ajax, jquery, mootools web programlama. Linux, apache, lamp sunucu yönetimi. Cpanel, plesk, lxadmin panel kurulumlari.

20 / 06 / 2018, 16:38:51
Web yazilim, grafik
barbetto.com

Tunalioglu.org - 2015