{"id":3001,"date":"2020-08-04T08:53:07","date_gmt":"2020-08-04T13:53:07","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=3001"},"modified":"2020-08-04T08:55:49","modified_gmt":"2020-08-04T13:55:49","slug":"how-to-install-postgresql-on-windows-servers","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=3001","title":{"rendered":"How to Install PostgreSQL on Windows Servers"},"content":{"rendered":"\n<p>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 &#8220;<strong>download now&#8221;&nbsp;<\/strong>link to complete the process<strong>.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image2-34-777x550.png\" alt=\"\" class=\"wp-image-70860\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How to Install PostgreSQL 10<\/h2>\n\n\n\n<p>Download the Windows version:&nbsp;<strong>PostgreSQL \u2013 [10.3] \u2013windows \u2013 x64.exe&nbsp;<\/strong>and then open it. Navigate to the download folder location and double-click the file to run the installer.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image4-30.png\" alt=\"\" class=\"wp-image-70861\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image3-31.png\" alt=\"\" class=\"wp-image-70862\"\/><\/figure>\n\n\n\n<p>Once you click&nbsp;<strong>next,<\/strong>&nbsp;by default, the Setup installs the PostgreSQL on the&nbsp;<strong>C<\/strong>&nbsp;directory, but you can always choose a different folder or directory on your local hardware.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image6-18.png\" alt=\"\" class=\"wp-image-70863\"\/><\/figure>\n\n\n\n<p>Select the components:&nbsp;<strong>by<\/strong>&nbsp;<strong>default &#8211; all components<\/strong>&nbsp;are selected.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image5-24.png\" alt=\"\" class=\"wp-image-70865\"\/><\/figure>\n\n\n\n<p>Select where you want PostgreSQL to&nbsp;<strong>store its data<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image8-11.png\" alt=\"\" class=\"wp-image-70866\"\/><\/figure>\n\n\n\n<p>Enter the password for the database superuser. This password is set for security purposes and is in fact the&nbsp;<strong>administrator&nbsp;<\/strong>user.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image7-15.png\" alt=\"\" class=\"wp-image-70867\"\/><\/figure>\n\n\n\n<p>Select a port number, by default it is usually port&nbsp;<strong>5432<\/strong>. You can always configure the firewall so that you can access the database from the web.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image12-5.png\" alt=\"\" class=\"wp-image-70868\"\/><\/figure>\n\n\n\n<p>Select a&nbsp;<strong>default locale<\/strong>&nbsp;or time zone and the default language. You choose your location here.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image9-8.png\" alt=\"\" class=\"wp-image-70869\"\/><\/figure>\n\n\n\n<p>Finally, confirm the settings you have just configured. Whenever you want you can go&nbsp;<strong>back<\/strong>&nbsp;to any setting you want to redo. If satisfied click<strong>&nbsp;next<\/strong>&nbsp;to continue.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image15-2.png\" alt=\"\" class=\"wp-image-70870\"\/><\/figure>\n\n\n\n<p>Additional utilities and add-ons can be installed using the&nbsp;<strong>Stack builder.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image13-2.png\" alt=\"\" class=\"wp-image-70871\"\/><\/figure>\n\n\n\n<p>Finally, click&nbsp;<strong>finish<\/strong>&nbsp;to complete the installation.<\/p>\n\n\n\n<p>Select the&nbsp;<strong>Postgres Server<\/strong>&nbsp;installed.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image14-2-e1529576336889.png\" alt=\"\" class=\"wp-image-70873\"\/><\/figure>\n\n\n\n<p>Select the &nbsp;additional configuration required and click&nbsp;<strong>Next&nbsp;<\/strong>to complete the installation.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image16-1.png\" alt=\"\" class=\"wp-image-70874\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Verifying the installation<\/h3>\n\n\n\n<p>The quickest way is to use the&nbsp;<strong>pgAdmin<\/strong>. At the search bar, search for&nbsp;<strong>pgAdmin<\/strong>&nbsp;and then click on the link.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image17-1-e1529576473874.png\" alt=\"\" class=\"wp-image-70875\"\/><\/figure>\n\n\n\n<p>The window shows your current installation. In this case:&nbsp;<strong>PostgreSQL 10<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Connect to the PostgreSQL 10 Instance<\/h3>\n\n\n\n<p>Next: double click the PostgreSQL. It prompts for the&nbsp;<strong>admin password<\/strong>&nbsp;that you set up earlier during the installation process<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image18-1-777x256.png\" alt=\"\" class=\"wp-image-70876\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image19-1-777x381.png\" alt=\"\" class=\"wp-image-70877\"\/><\/figure>\n\n\n\n<p>If installed correctly,&nbsp;<strong>pgAdmin<\/strong>&nbsp;shows us all objects on the server.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/hostadvice.com\/wp-content\/uploads\/2018\/06\/image20-1-777x522.png\" alt=\"\" class=\"wp-image-70878\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting errors<\/h2>\n\n\n\n<p>In case you get an error do the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Uninstall the app and delete its data in the installation folder.<\/li><li>Create a new user in the Windows account and add it to the administrative group, call it&nbsp;<strong>postgres.<\/strong><\/li><li>Restart your system.<\/li><li>Open your command prompt using the command<ol><li>runas \/user:posters cmd.exe<\/li><\/ol><\/li><li>Finally, another window appears, and this is where you run the installer.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8220;download now&#8221;&nbsp;link to complete the process. How to Install PostgreSQL 10 Download the Windows version:&nbsp;PostgreSQL \u2013 [10.3] \u2013windows [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,63,74],"tags":[],"class_list":["post-3001","post","type-post","status-publish","format-standard","hentry","category-microsoft-windows-server-2012","category-server-2016-2016","category-windows-server-2019"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3001"}],"version-history":[{"count":2,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3001\/revisions"}],"predecessor-version":[{"id":3003,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3001\/revisions\/3003"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}