diff --git a/docs/docs/guides/database-queries.md b/docs/docs/guides/database-queries.md index 8baf9cf825..20b841f402 100644 --- a/docs/docs/guides/database-queries.md +++ b/docs/docs/guides/database-queries.md @@ -5,7 +5,7 @@ Keep in mind that mucking around in the database might set the moon on fire. Avo ::: :::tip -Run `docker exec -it immich_postgres psql immich ` to connect to the database via the container directly. +Run `docker exec -it immich_postgres psql --dbname=immich --username=` to connect to the database via the container directly. (Replace `` with the value from your [`.env` file](/docs/install/environment-variables#database)). ::: @@ -106,3 +106,9 @@ SELECT "key", "value" FROM "system_metadata" WHERE "key" = 'system-config'; ```sql title="Delete person and unset it for the faces it was associated with" DELETE FROM "person" WHERE "name" = 'PersonNameHere'; ``` + +## Postgres internal + +```sql title="Change DB_PASSWORD" +ALTER USER WITH ENCRYPTED PASSWORD 'newpasswordhere'; +```