Created
May 15, 2023 11:54
-
-
Save ststeiger/a2a1cd25b5fd600f235d5fdeffc10a32 to your computer and use it in GitHub Desktop.
Create hmail user on postgresql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE ROLE hmail WITH SUPERUSER LOGIN PASSWORD 'TOP_SECRET'; | |
| SELECT rolpassword FROM pg_authid WHERE rolname = 'hmail' | |
| SELECT pg_reload_conf(); | |
| -- /etc/postgresql/15/main/postgresql.conf | |
| -- #password_encryption = scram-sha-256 # scram-sha-256 or md5 | |
| -- #password_encryption = md5 | |
| -- password_encryption = scram-sha-256 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment