checking to see if mysql is running

This commit is contained in:
abhishek 2011-02-28 13:43:24 -08:00
parent a7c6b9f28e
commit 2a95a95d18

View File

@ -3,6 +3,12 @@
#######
# mysql phase 1
pgrep mysqld
if [ $? -ne 0 ]; then
echo "Mysqld is not running"
exit 1
fi
echo Running upgrade for database: cloud from 2.2.1 to 2.2.2
mysql -u root -C cloud < 221to222.sql
if [ $? -gt 0 ]