[摘要]grep 3306 if [ $? -eq 0 ] then /usr/local/mysql/bin/mysql -uxxxxx -pxxxxxx --connect_timeout=5 -...
grep 3306
if [ $? -eq 0 ]
then
/usr/local/mysql/bin/mysql -uxxxxx -pxxxxxx --connect_timeout=5 -e "show databases;"
if [ $? -ne 0 ]
then
/bin/ps aux
关键词:介绍一款检测MySQL状态的脚本