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

29 lines
723 B
Markdown
Raw Normal View History

2015-08-04 20:10:30 +05:00
2015-10-21 19:51:17 +05:00
Postgres on Debian (as root)
2015-08-04 20:10:30 +05:00
2015-10-21 19:51:17 +05:00
# install as root
2015-10-16 22:47:33 +05:00
apt-get install --no-install-recommends postgresql postgresql-client
2015-08-04 20:10:30 +05:00
Setting up postgres (as root)
# become postgres user
su postgres
# spawn postgres admin shell
2015-10-21 19:56:54 +05:00
psql
2015-08-04 20:10:30 +05:00
You'll get a prompt, enter the following:
2015-10-16 22:47:33 +05:00
CREATE ROLE srnd WITH LOGIN PASSWORD 'srnd';
CREATE DATABASE srnd WITH ENCODING 'UTF8' OWNER srnd;
2015-08-04 20:10:30 +05:00
\q
2015-10-16 23:11:08 +05:00
For demo purposes we'll use these credentials.
These are default values, please change them later.
## important
these credentials assume you are going to run using a user called `srnd`, if your username you plan to run the daemon as is different please change `srnd` to your username.
2015-10-16 23:11:08 +05:00
Now run it, [next](running.md)