-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: criando documento com instalacao basica do postgresql em linux
- Loading branch information
1 parent
620b32e
commit 559c7c2
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Introdução | ||
|
||
# Instalação Linux | ||
|
||
sudo apt update | ||
sudo apt install python3-pip python3-dev libpq-dev postgresql postgresql-contrib | ||
|
||
## Rodando PostgreSQL | ||
sudo -u postgres psql | ||
|
||
## Criando Banco de dados e Usuário | ||
CREATE DATABASE meuprojeto; | ||
|
||
CREATE USER meuusuario WITH PASSWORD 'senha'; | ||
|
||
ALTER ROLE meuusuario SET client_encoding TO 'utf8'; | ||
ALTER ROLE meuusuario SET default_transaction_isolation TO 'read committed'; | ||
ALTER ROLE meuusuario SET timezone TO 'America/Sao_Paulo'; |
This file contains 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