Installing PostgreSQL under Debian and creating sample user and database

Опубликовано: 30 Март 2018
на канале: Javed Akhtar
143
4

Installing PostgreSQL under Debian
First update your installation with(Make sure you are logged in as root)
apt-get update

then install PostgreSQL with the command bellow
apt-get install -y postgresql libpq-dev

to make the PostgreSQL start at system start use the command bellow
systemctl start postgresql
systemctl enable postgresql

to run first time without password
sudo -u postgres psql

To create a database
CREATE DATABASE netbox;

Now create a user "Replace the quoted text with password of your choice"
CREATE USER netbox WITH PASSWORD 'Your Password Here';

Grant the new user privilege for the database
GRANT ALL PRIVILEGES ON DATABASE netbox TO netbox;

to quit
\q


На этой странице сайта вы можете посмотреть видео онлайн Installing PostgreSQL under Debian and creating sample user and database длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Javed Akhtar 30 Март 2018, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 143 раз и оно понравилось 4 зрителям. Приятного просмотра!