mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-24 21:35:17 +00:00
Update modules/ROOT/pages/postgresql.adoc
This commit is contained in:
parent
a4f1e700bc
commit
8db8c1dba2
1 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue