Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/doc/database.md

24 lines
470 B
Markdown
Raw Normal View History

2015-08-04 20:10:30 +05:00
Postgres on Debian:
# install
apt-get install postgresql postgresql-client
Setting up postgres (as root)
# become postgres user
su postgres
# spawn postgres admin shell
psql
You'll get a prompt, enter the following:
CREATE ROLE srnd WITH LOGIN PASSWORD 'srndpassword';
CREATE DATABASE srnd WITH ENCODING 'UTF8' OWNER srnd;
2015-08-04 20:10:30 +05:00
\q
Change the username and password as desired.
The username has to be the same as the database name.