This message was deleted.
# ask-for-help
s
This message was deleted.
๐Ÿ‘€ 1
๐Ÿฆ„ 1
๐Ÿ 1
x
Thank you for your feedback, you can check if your username and password are correct, if you really forget your password or username, you can try logging into your database and setting the user's email to empty. Finally, remember to go to
/setup
and reset the yatai.
Copy code
# forward the postgresql service in k8s to your local
kubectl port-forward --namespace yatai-system svc/postgresql-ha-pgpool 5433:5432 &

# login to postgresql and reset the email field of user
PGPASSWORD=$(kubectl -n yatai-system get secret postgresql-ha-postgresql -o jsonpath='{.data.postgresql-password}' | base64 -d) psql -h localhost -p 5433 -U postgres -d yatai -c "update \"user\" set email = '' where id = 1"
๐Ÿ‘€ 1
k
Thank you for your answer, this is my postgres with yatai db and user table, is that correct?
x
@kurniarahmatt Your SQL is wrong,
user
needs to add quotes:
Copy code
select * from "user";
k
oh god, my mistake, now everyting is ok, thanks lot @Xipeng Guan
๐Ÿ™Œ 1