mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
checking to see if mysql is running
This commit is contained in:
parent
a7c6b9f28e
commit
2a95a95d18
@ -3,6 +3,12 @@
|
|||||||
#######
|
#######
|
||||||
# mysql phase 1
|
# 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
|
echo Running upgrade for database: cloud from 2.2.1 to 2.2.2
|
||||||
mysql -u root -C cloud < 221to222.sql
|
mysql -u root -C cloud < 221to222.sql
|
||||||
if [ $? -gt 0 ]
|
if [ $? -gt 0 ]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user