Update modules/ROOT/pages/postgresql.adoc

This commit is contained in:
niko d 2021-12-31 09:02:30 +00:00
parent a4f1e700bc
commit 8db8c1dba2

View file

@ -62,13 +62,18 @@ It might be good idea to add password for the `postgres` user while you're at it
postgres=# \password postgres
....
`\q` to get out of postgres and back to shell. Now you can switch back to your main account and start using your database.
Now get out of postgres and back to shell.
....
su original_user
\q
....
Now you can access your database:
And switch back to your main account with ctrl + D or type the command below where original_user is your username.
....
su your_username
....
Now you can access your database and start using it.
....
psql carl