Slackbot
09/21/2022, 10:31 AMXipeng Guan
09/21/2022, 10:57 AM/setup
and reset the yatai.
# 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"
kurniarahmatt
09/22/2022, 2:05 AMXipeng Guan
09/22/2022, 3:03 AMuser
needs to add quotes:
select * from "user";
kurniarahmatt
09/22/2022, 3:21 AM