Basic use of PostgresQL

Source: Internet
Author: User
PostgresQL basically downloads the PostgreSQL installation package from the official website and executes the installation. After the installation is complete, a new service is created in the windows Service and can be started directly. If the service is not successfully created, you need to start it through the command line. My PG is installed in D: workdb1_sql9.2to execute initdb.exe under the bindirectory.

PostgresQL basically downloads the PostgreSQL installation package from the official website and executes the installation. After the installation is complete, a new service is created in the windows Service and can be started directly. If the service is not successfully created, you need to start it through the command line. My PG is installed in initdb.exe under the bindirectory of D: \ work \ DB \ PostgreSQL \ 9.2.

Basic use of PostgresQL

Download the PostgreSQL installation package from the official website and install it. After installation, a new service is created in the windows Service and can be started directly. If the service is not successfully created, you need to start it through the command line.

My PG is installed in D: \ work \ DB \ PostgreSQL \ 9.2

To execute initdb.exe under the bindirectory, you must provide the data file directory, for example, D: \ work \ DB \ PostgreSQL \ 9.2 \ mydata. You only need to execute this command when you use it for the first time.

Then run pg_ctl start-D "D: \ work \ DB \ PostgreSQL \ 9.2 \ mydata" to start the database.

Then run the PGAdmin3 command to open a simple graphic console, which allows you to conveniently View data and execute SQL.

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.