#!/bin/bash
mysqlpd=$1
if [ -z "$mysqlpd" ]; then  
    echo "请输入数据库密码作为参数，如sh admin_reset.sh ******！"
else
    mysql -uepcloud -p$mysqlpd starvcenter_db -e "UPDATE sys_user SET password = 'PVHpRzpgfwprz+/G56K8ywJDQvOChoPQDFmzL6b6LGPWO4mcVXlpCU7mA1Nm4OcFeLn1ub8DobpV1c0+gBCotAwtzk39CkkufFXhy53LRIZ/CqCTYeJ/ZCPikn1RfWVirJOO1gzeKaAVsgx+bzZmmUA5/ghsq8XsaAG/qDS7dgs=' WHERE login_name = 'admin';UPDATE sys_temp SET password = 'PVHpRzpgfwprz+/G56K8ywJDQvOChoPQDFmzL6b6LGPWO4mcVXlpCU7mA1Nm4OcFeLn1ub8DobpV1c0+gBCotAwtzk39CkkufFXhy53LRIZ/CqCTYeJ/ZCPikn1RfWVirJOO1gzeKaAVsgx+bzZmmUA5/ghsq8XsaAG/qDS7dgs=' WHERE name = 'admin';"
fi
