“Buat Windows Pengguna Postgres” Kode Jawaban

Buat DB User Postgres

sudo -u postgres psql
postgres=# create database mydb;
postgres=# create user myuser with encrypted password 'mypass';
postgres=# grant all privileges on database mydb to myuser;
Igor Parra

Buat Windows Pengguna Postgres

to start postgres, go to bin, open cmd and type:
psql.exe -U postgres

for linux:
sudo -u postgres psql

postgres=# create database mydb;
postgres=# create user myuser with encrypted password 'mypass';
postgres=# grant all privileges on database mydb to myuser;
Alien0w0

Buat Pengguna Baru di Postgres

CREATE USER visualscrapy WITH PASSWORD '123456';
# it will create the new user in postgres
visualscrapper

Buat Windows Pengguna Postgres

# in the terminal (not inside psql)
createuser -P --interactive ExampleUser

# Inside psql (using SQL)
CREATE USER john WITH PASSWORD 'mypass' CREATEDB;
Jarett Sisk

PSQL Buat Pengguna

# https://www.postgresql.org/docs/8.0/sql-createuser.html
CREATE USER <username> WITH PASSWORD '<password>' VALID UNTIL '<date here>';
Weeke

Jawaban yang mirip dengan “Buat Windows Pengguna Postgres”

Pertanyaan yang mirip dengan “Buat Windows Pengguna Postgres”

Lebih banyak jawaban terkait untuk “Buat Windows Pengguna Postgres” di Shell/Bash

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya