mysqladmin -u${user} -p${password} password "123456" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo "success"
else
echo "fail"
fi
mysqladmin -u${user} -p${password} password "123456" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo "success"
else
echo "fail"
fi