#!/bin/sh mysql -e "select 1" 2>&1 | grep -i error