Document toolboxDocument toolbox

PostgreSQL에 WASup 연결하기




중요

원격 PostgreSQL 서버로 연결해야하는 경우 사전에 data/postgresql.conf 와 data/pg_hba.conf 파일을 설정하여 WASup Manager의 IP 주소로 TCP 연결이 가능하도록 설정해야 한다.

Create User

WASup Manager에서 접속하려는 데이터베이스 사용자를 생성한다 (예. wasup). 아래 두 가지 방법 중 하나를 선택한다.


]$ sudo -i -u postgres psql

postgres=# CREATE USER wasup WITH ENCRYPTED PASSWORD '<PASSWORD>';


]$ sudo su - postgres

-bash-4.2$ createuser --interactive --pwprompt
Enter name of role to add: wasup
Enter password for new role: <PASSWORD>
Enter it again: <PASSWORD>
Shall the new role be a superuser? (y/n) y



Create Database

WASup Manager가 데이터를 저장하기 위한 데이터베이스를 생성한다 (예. wasupdb). 아래 두 가지 방법 중 하나를 선택한다.


]$ sudo -i -u postgres psql

postgres=# CREATE DATABASE wasupdb OWNER wasup ENCODING 'UTF-8';



]$ sudo su - postgres

-bash-4.2$ createdb wasupdb -O wasup --encoding='utf-8'



참고

PostgreSQL 9.2.24에서 테스트되었다.




MySQL 또는 MariaDB에 WASup 연결하기
3. Dashboard (Home)


Copyright © 2021 Open Source Consulting, Inc. All Rights Reserved.