increase timeout before killing to account for slower startup speed of larger databases
This commit is contained in:
parent
deec3d6a6d
commit
eaf52f77a3
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ test $# -gt 0 || exit 1
|
|||
sleep 5
|
||||
echo "USE mysql; UPDATE user SET Password=PASSWORD('$1') WHERE User='root' AND Host='localhost';" | mysql -u root
|
||||
killall mysqld
|
||||
sleep 5
|
||||
sleep 15
|
||||
# chown to be on the safe side
|
||||
ls -al /var/lib/mysql/mysql-bin.* &> /dev/null
|
||||
[ $? == 0 ] && chown mysql.mysql /var/lib/mysql/mysql-bin.*
|
||||
|
|
Loading…
Reference in a new issue