#!/bin/bash

## reset password for admin
## new password will be K@8D2&7#s%iD and should be reset right now!

. ./config

kubectl exec -i db-mysql-0 -n$GPAAS_NAMESPACE -- mysql -uroot -p$DB_PASSWORD <../data/sql/reset_password.sql 2>/dev/null

echo "重置gPaaS管理员密码成功"
echo "管理员登录名：admin，重置后密码：K@8D2&7#s%iD"