In this video you will learn how to install the free object-relational database management system postgresql
Also in this video you will learn how to change the location of a folder with postgresql files and, in principle, how to move folders from one location to another. We will use rsync to move and check how everything works at the end.
Useful links
Tutorial:
1.
2.
VPS/VDS -
Commands used
apt update && apt upgrade -y
apt install postgresql postgresql-contrib
systemctl start postgresql.service
sudo -i -u postgres
psql
sudo -u postgres createuser --interactive
sudo -u postgres createdb sammy
adduser NAME
sudo -i -u NAME
sudo -u postgres psql
SHOW data_directory;
systemctl stop postgresql
systemctl status postgresql
rsync -av /var/lib/postgresql /mnt/YOURFOLDER
mv /var/lib/postgresql/12/main /var/lib/postgresql/12/main.bak
nano /etc/postgresql/12/main/postgresql.conf
systemctl start postgresql
systemctl status postgresql
sudo -u postgres psql
rm -Rf /var/lib/postgresql/12/main.bak
Смотрите видео Как установить и настроить PostgreSQL на ubuntu 20.04 онлайн, длительностью 07 минут 45 секунд в хорошем hd качестве, которое загружено на канал MivoCloud 22 Август 2022. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 235 раз и оно понравилось 4 посетителям.