How to Create and Delete a PostgreSQL Database on Ubuntu 16.04

March 12, 2020 Liquid Web

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

Commands used:
su - postgres
psql
postgres=# CREATE DATABASE dbname;
postgres=# \list
DROP DATABASE dbname;

The related article for this article can be found here: https://www.liquidweb.com/kb/creating-and-deleting-a-postgresql-database/

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/ or for more information on our line of dedicated products visit us at https://www.liquidweb.com/products/dedicated/ 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 <a href="https://www.liquidweb.com/blog">newsletter</a> to stay up to date with our latest content.

More Content by Liquid Web
Previous Video
How to Install and Connect to PostgreSQL 10 on Ubuntu 16.04
How to Install and Connect to PostgreSQL 10 on Ubuntu 16.04

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

Next Video
List PHP Modules from the Command Line
List PHP Modules from the Command Line

In this video, we describe how to list PHP modules from the command line.

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

Download Now