this post was submitted on 20 Aug 2023
15 points (94.1% liked)

Lemmy Support

4651 readers
4 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

I've installed Lemmy via ansible, but I figured out that there are problems with emails and after I've created a user, no verification email came, no login is possible and now I have a ghost account I want to delete.

Because I couldn't find an UI element to purge users in the admin panel, I want to do it over postgresql, but I have no idea how to connect to the Lemmy database over a docker container, only thing I've found is to backup/restore the whole database:

docker-compose exec postgres pg_dumpall -c -U lemmy | gzip > lemmy_dump_date +%Y-%m-%d""%H%M_%S.sql.gz

Thank you for your help.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] beeng@discuss.tchncs.de 4 points 1 year ago (1 children)

Try to get a bash prompt inside the dB container, then you can run CLI postgres commands from inside the container.

[โ€“] utopify_org@lemmy.ml 1 points 1 year ago* (last edited 1 year ago)

How exactly? The recommendations of other people here didn't work.

EDIT: Found a solution. Check other posts to see how it works.