How to Install and Connect to PostgreSQL 10 on Ubuntu 16.04

March 12, 2020 Liquid Web

In this video, we demonstrate to you how to install and connect to PostgreSQL 10 on Ubuntu 16.04

Commands used:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -sc)-pgdg main" 
Type angled bracket
/etc/apt/sources.list.d/PostgreSQL.list'
apt-get -y update
apt-get install postgresql-10
su - postgres
postgres@host2:~$
psql
\q

The related article for this article can be found here: 
https://www.liquidweb.com/kb/install-and-connect-to-postgresql-10-on-ubuntu-16-04/

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/ or for more information on our Private Cloud product, visit https://www.liquidweb.com/products/private-cloud/ to learn more about our current specials!


Video by: Justin Palmer

About the Author

Liquid Web

Liquid Web powers online content, commerce, and potential for SMB entrepreneurs and the designers, developers and digital agencies who create for them. Sign up for our newsletter to stay up to date with our latest content.

More Content by Liquid Web
Previous Video
How to Install PhpMyAdmin on Ubuntu 18.04
How to Install PhpMyAdmin on Ubuntu 18.04

PhpMyAdmin can simplify tasks by providing a control panel to view or edit your MySQL or MariaDB database. ...

Next Video
How to Create and Delete a PostgreSQL Database on Ubuntu 16.04
How to Create and Delete a PostgreSQL Database on Ubuntu 16.04

In this video, we demonstrate to you how to create and delete a PostgreSQL database on Ubuntu 16.04.

Learn What Qualities to Look for in Your Next Host in Our New Guide!

Download Now