8000 Roles without name · keycloak keycloak · Discussion #38447 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

I dumped the postgresql database to a file, deleted the wrong entries. Dropped the old database and imported the correct dump file.

Backup

[root@keycloak ~]# su - postgres
[postgres@keycloak ~]$ pg_dump keycloakdb > 2024-10-18_keycloakdb.psql.dump

Restore

[root@keycloak ~]# su - postgres
[postgres@keycloak ~] createuser keycloak
[postgres@keycloak ~] createdb keycloakdb
[postgres@keycloak ~] psql
$ alter user keycloak with encrypted password 'password';
$ grant all privileges on database keycloakdb to keycloak;
$ GRANT ALL ON DATABASE keycloakdb TO keycloak;
$ ALTER DATABASE keycloakdb OWNER TO keycloak;
$ GRANT USAGE, CREATE ON SCHEMA PUBLIC TO keycloak;
$ \q
$ logout
[postgres@keycloak …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by madman9999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
0