Change a Password for PostgreSQL on Linux via Command Line

April 2, 2020 Liquid Web

In this video, we describe how to change a password for PostgreSQL in Linux via the command line.

Commands used:
su - postgres
psql
\password
Enter new password:
Enter it again:

su -c "psql" - postgres

The related article for this article can be found here: https://www.liquidweb.com/kb/change-a-password-for-postgresql-on-linux-via-command-line/

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/ or to learn more about our Private Cloud Powered by VMware and NetApp, visit: https://www.liquidweb.com/products/private-cloud/ 


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 Apache 2 on Ubuntu 18.04
How to Install Apache 2 on Ubuntu 18.04

Apache is the most popular web server software in use today. In this video, we describe how to install Apac...

Next Video
How to Remove Permissions for a MySQL User on Linux via the Command Line
How to Remove Permissions for a MySQL User on Linux via the Command Line

In this video, we describe how to remove permissions for a MySQL user via the Linux command line.

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

Download Now