Today we share the installation and configuration of postgresql12.x version in win environment. This kind of database is one of our most commonly used relational databases, especially for data storage related to spatial and geographical coordinates. Without further ado, let's get started.
1. Download and installation process
1. Official website download
Select win environment version 12
The file name is: postgresql-12.14-1-windows-x64.exe
2. Double-click the installation package
It is not recommended to install it on the C drive of the system disk. After clicking, the following page will appear:
3. Click Next
Customize the E disk here.
4. Continue to click Next
Select the components to be installed, just select all of them, and click "Next" to enter
The place where the data is stored is similar to mysql; of course, it can also be customized and modified; click Next to enter
Set the password of the super user postgres; click Next
Set the port number to 5432 by default.
Set the locale (Locale) (default), click Next
Print out the installation configuration information, click Next
Start the installation, click Next
The installation is in progress and generally takes between 5-10 minutes. finally open
At this point the most basic installation is complete.
2. Login operation
Find and open pgAdmin 4 on the operating system program interface, the main interface after opening is displayed as follows, and prompts to enter the password
Or go directly to the installed package E:\Program Files\PostgreSQL\12\pgAdmin 4\bin to find pgAdmin4.exe
After entering the password click
Click to enter password:
Modify into Chinese
After modification, reload:
Of course, if you forget to install pgAdmin at the beginning, you can also download and install it separately later. The download address is:
pgadmin official download address
5. Enter the console
Click, keep clicking the Enter shortcut key
You can use pqsl related scripts to query here
6. Connect navicat15
Just enter your password and connection name.
8. Service start and stop
find computer management
At this point, the installation and configuration of the psql database is basically completed. You can try it yourself. In the next article, we will analyze data import and plug-in installation, so stay tuned!