Sample Header Ad - 728x90

Equivalent Linux commands for Windows ones to create user and database

0 votes
2 answers
685 views
There is a manual for configuring PostgreSQL on Windows with these commands:
C:\"Program Files"\PostgreSQL\12\bin\createuser.exe --username=postgres --superuser --pwprompt saleor

C:\"Program Files"\PostgreSQL\12\bin\createdb.exe --username=postgres --owner=saleor saleor
I'm going to do the same on Linux, but I'm not sure how. I know that I have to do:
> sudo su postgres
> psql 

psql (13.3)
Type "help" for help.

postgres=#
But I'm not sure what to do next. I appreciate any help.
Asked by Megidd (99 rep)
May 28, 2021, 11:10 AM
Last activity: May 12, 2024, 07:57 AM