checking to see if mysql is running

This commit is contained in:
abhishek 2011-02-28 13:45:32 -08:00
parent eb62f16769
commit 0fa708534f
1 changed files with 6 additions and 0 deletions

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 ]