mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 02:21:15 +02:00
18 lines
568 B
Plaintext
18 lines
568 B
Plaintext
***************************************************************************
|
|
|
|
1 For initialize databases area with admin %%PG_OWNER%% and base
|
|
encoding UTF8:
|
|
|
|
su %%PG_OWNER%% -c '%%PREFIX%%/bin/pg_initdb -D %%PG_DB_DIR%% \
|
|
-E UTF8 --locale en_GB.UTF-8 -U %%PG_OWNER%% -W -A md5'
|
|
|
|
2 Add user:
|
|
su %%PG_OWNER%% -c '%%PREFIX%%/bin/pg_createuser --createrole \
|
|
--superuser --createdb --pwprompt --echo username'
|
|
|
|
|
|
3 Create database:
|
|
su %%PG_OWNER%% -c '%%PREFIX%%/bin/pg_createdb db_name'
|
|
|
|
***************************************************************************
|