3

How to Install PostgreSQL on Windows Servers

 3 years ago
source link: https://microsoftgeek.com/?p=3001
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Open a browser tab and go to the PostgreSQL -EnterpriseDB website to download the installer. Select the latest version (version 10.3 at the time of writing of this article). Then select your operating system. Finally click the “download now” link to complete the process.

image2-34-777x550.png

How to Install PostgreSQL 10

Download the Windows version: PostgreSQL – [10.3] –windows – x64.exe and then open it. Navigate to the download folder location and double-click the file to run the installer.

image4-30.png
image3-31.png

Once you click next, by default, the Setup installs the PostgreSQL on the C directory, but you can always choose a different folder or directory on your local hardware.

image6-18.png

Select the components: by default – all components are selected.

image5-24.png

Select where you want PostgreSQL to store its data.

image8-11.png

Enter the password for the database superuser. This password is set for security purposes and is in fact the administrator user.

image7-15.png

Select a port number, by default it is usually port 5432. You can always configure the firewall so that you can access the database from the web.

image12-5.png

Select a default locale or time zone and the default language. You choose your location here.

image9-8.png

Finally, confirm the settings you have just configured. Whenever you want you can go back to any setting you want to redo. If satisfied click next to continue.

image15-2.png

Additional utilities and add-ons can be installed using the Stack builder.

image13-2.png

Finally, click finish to complete the installation.

Select the Postgres Server installed.

image14-2-e1529576336889.png

Select the  additional configuration required and click Next to complete the installation.

image16-1.png

Verifying the installation

The quickest way is to use the pgAdmin. At the search bar, search for pgAdmin and then click on the link.

image17-1-e1529576473874.png

The window shows your current installation. In this case: PostgreSQL 10

Connect to the PostgreSQL 10 Instance

Next: double click the PostgreSQL. It prompts for the admin password that you set up earlier during the installation process

image18-1-777x256.png
image19-1-777x381.png

If installed correctly, pgAdmin shows us all objects on the server.

image20-1-777x522.png

Troubleshooting errors

In case you get an error do the following:

  1. Uninstall the app and delete its data in the installation folder.
  2. Create a new user in the Windows account and add it to the administrative group, call it postgres.
  3. Restart your system.
  4. Open your command prompt using the command
    1. runas /user:posters cmd.exe
  5. Finally, another window appears, and this is where you run the installer.

Conclusion

PostgreSQL is one of the best-performing relational databases that is available to developers today. It is an excellent choice for most business applications that consider data mining, analytics, and reporting as important requirements. Amazon is using PostgreSQL for data warehousing. Redshift, also implements a somewhat modified version of the framework.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK