카테고리 없음

5. 포스트 그레

미니대왕님 2023. 11. 17. 09:58

1.k8s 으로 postgreSQL DB 생성 PV, PVC , configmap, secret 생성하기

2. Keycloak Docker / postgresql 사용

3. K8s 에서 postsql POD 생성및 터널링 진행

4. Centos Postgresql 설치하는 방법

5. 포스트 그레

6. Kubernetes 환경의 PostgreSQL 설치하기

7.Postgresql 설치및 간단한 사용방법정리!

8. postgresql Vacuum 기본에대해 알아보자!

9. PostgreSQL Pod 접속
-- Example
CREATE DATABASE test_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'test_user' IDENTIFIED BY '1q2w3e4r%T';
GRANT ALL PRIVILEGES ON test_db.* TO 'test_user';

-- 데이터베이스 목록 조회
SHOW DATABASES;

-- 사용자 목록 조회
SELECT User, Host, authentication_string FROM mysql.user;

 

포스트 그레 

psql -U [username] -d [database_name] -h [hostname] -p [port_number]

 

psql -U myuser -d mydatabase -h localhost -p 5432

 

psql -h localhost -p 5432 -U postgres -d postgres
psql -h localhost -p 5432 -U postgres -d postgres

9I:0unMVr2v