PostgreSQL Installation Guide on Ubuntu

Source: Internet
Author: User
Tags psql
Installation environment: Ubuntu10.04-desktop-i386PostgreSQL8.41. Installation PostgreSQL enter the following command sudoapt-getinstallpostgresql system will prompt to install the required disk space, enter "y", the installer will be completed automatically. After the installation is complete, the system will create a database superuser "postgres" with a blank password. This user is not allowed to log on

Installation environment:

Ubuntu 10.04-desktop-i386

PostgreSQL 8.4

1. Install PostgreSQL

Enter the following command

Sudo apt-get install postgresql

The system prompts you to install the required disk space. Enter "y". The installation program is automatically completed. After the installation is complete, the system will create a database superuser "postgres" with a blank password. This user is both an Unlogged operating system user and a database user.

2. Modify the Linux User's postgres Password

Enter the following command

Sudo passwd ipvs

3. Modify the password of database superuser S

1) switch to postgres user in Linux

Sudo su postgres

2) log on to the ipvs Database

Psql postgres

In this way, you will see the following prompt message for S:

Psql (8.4.4)

Type "help" for help.

The command line prompt symbol of ipvs is displayed:

Postgres = #

3) enter the following command:

Alter user Login s with PASSWORD 'Password'

Type "exit" to return to the Linux Command Line.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.