<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Creating_PostgreSQL_databases_-_command-line_setup</title><link>https://sourceforge.net/p/dpr/wiki/Creating_PostgreSQL_databases_-_command-line_setup/</link><description>Recent changes to Creating_PostgreSQL_databases_-_command-line_setup</description><atom:link href="https://sourceforge.net/p/dpr/wiki/Creating_PostgreSQL_databases_-_command-line_setup/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 29 Jul 2013 06:33:01 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dpr/wiki/Creating_PostgreSQL_databases_-_command-line_setup/feed" rel="self" type="application/rss+xml"/><item><title>Creating_PostgreSQL_databases_-_command-line_setup modified by Kirti Chennareddy</title><link>https://sourceforge.net/p/dpr/wiki/Creating_PostgreSQL_databases_-_command-line_setup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v19
+++ v20
@@ -15,7 +15,7 @@

 1\. Change to the location of your sql database-creation files: 

-    cd &amp;lt;location of dpr-source/dpr/dist directory&amp;gt;
+    ;

 2\. Create the QF database: 
@@ -90,7 +90,7 @@

 1\. Change to the location of your sql database-creation files: 

-    cd &amp;lt;location of dpr-source/dpr/dist directory&amp;gt;
+    ;

 2\. Create the QF database: 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kirti Chennareddy</dc:creator><pubDate>Mon, 29 Jul 2013 06:33:01 -0000</pubDate><guid>https://sourceforge.net64e21303914b9972001df3ca437f0bdaa1c7010c</guid></item><item><title>Creating_PostgreSQL_databases_-_command-line_setup modified by Allan Cunliffe</title><link>https://sourceforge.net/p/dpr/wiki/Creating_PostgreSQL_databases_-_command-line_setup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v18
+++ v19
@@ -3,7 +3,7 @@
   * creation of the three databases - Quarantine (QF), Preservation (PF), and Digital Repository (DR) 
   * creating the database tables by applying the supplied SQL statements.

-**Note:** If you like doing things the hard way, read on - if not, please create your databases using the pgAdmin interface (see the [Creating_PostgreSQL_databases_-_pgAdmin_setup] procedure). 
+**Note:** If you like doing things the hard way, read on; if not, please create your databases using the pgAdmin interface (see the [Creating_PostgreSQL_databases_-_pgAdmin_setup] procedure). 

 The following descriptions assume a default installation of PostgreSQL on the machine where the DPR software is being used. 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Allan Cunliffe</dc:creator><pubDate>Tue, 11 Jun 2013 18:25:59 -0000</pubDate><guid>https://sourceforge.netd6375aa3025e30c6c3c0662ec51f5e7985ce90df</guid></item><item><title>Creating_PostgreSQL_databases_-_command-line_setup modified by Allan Cunliffe</title><link>https://sourceforge.net/p/dpr/wiki/Creating_PostgreSQL_databases_-_command-line_setup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v17
+++ v18
@@ -3,7 +3,7 @@
   * creation of the three databases - Quarantine (QF), Preservation (PF), and Digital Repository (DR) 
   * creating the database tables by applying the supplied SQL statements.

-**Note:** If you like doing things the hard way, read on. Otherwise, please create your databases using the pgAdmin interface (see the [Creating_PostgreSQL_databases_-_pgAdmin_setup] procedure). 
+**Note:** If you like doing things the hard way, read on - if not, please create your databases using the pgAdmin interface (see the [Creating_PostgreSQL_databases_-_pgAdmin_setup] procedure). 

 The following descriptions assume a default installation of PostgreSQL on the machine where the DPR software is being used. 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Allan Cunliffe</dc:creator><pubDate>Tue, 11 Jun 2013 18:25:59 -0000</pubDate><guid>https://sourceforge.net695a177ae2e02a369bc28e20690980474eb9c732</guid></item><item><title>Creating_PostgreSQL_databases_-_command-line_setup modified by Allan Cunliffe</title><link>https://sourceforge.net/p/dpr/wiki/Creating_PostgreSQL_databases_-_command-line_setup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v16
+++ v17
@@ -3,7 +3,7 @@
   * creation of the three databases - Quarantine (QF), Preservation (PF), and Digital Repository (DR) 
   * creating the database tables by applying the supplied SQL statements.

-**Note:** If you like doing things the hard way, read on. Otherwise, please create your databases using the pgAdmin interface - by following the [Creating_PostgreSQL_databases_-_pgAdmin_setup] procedure. 
+**Note:** If you like doing things the hard way, read on. Otherwise, please create your databases using the pgAdmin interface (see the [Creating_PostgreSQL_databases_-_pgAdmin_setup] procedure). 

 The following descriptions assume a default installation of PostgreSQL on the machine where the DPR software is being used. 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Allan Cunliffe</dc:creator><pubDate>Tue, 11 Jun 2013 18:25:58 -0000</pubDate><guid>https://sourceforge.netf71a9917ca506415c11e77d007be313a1c5c03c3</guid></item><item><title>Creating_PostgreSQL_databases_-_command-line_setup modified by Allan Cunliffe</title><link>https://sourceforge.net/p/dpr/wiki/Creating_PostgreSQL_databases_-_command-line_setup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v15
+++ v16
@@ -3,7 +3,7 @@
   * creation of the three databases - Quarantine (QF), Preservation (PF), and Digital Repository (DR) 
   * creating the database tables by applying the supplied SQL statements.

-**Note:** If you like doing things the hard way, read on. Otherwise, please create your databases via pgAdmin by following the [Creating_PostgreSQL_databases_-_pgAdmin_setup] procedure. 
+**Note:** If you like doing things the hard way, read on. Otherwise, please create your databases using the pgAdmin interface - by following the [Creating_PostgreSQL_databases_-_pgAdmin_setup] procedure. 

 The following descriptions assume a default installation of PostgreSQL on the machine where the DPR software is being used. 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Allan Cunliffe</dc:creator><pubDate>Tue, 11 Jun 2013 18:25:58 -0000</pubDate><guid>https://sourceforge.net07edffa5af6d249fb08f55c877a59640bda94e3c</guid></item><item><title>Creating_PostgreSQL_databases_-_command-line_setup modified by Allan Cunliffe</title><link>https://sourceforge.net/p/dpr/wiki/Creating_PostgreSQL_databases_-_command-line_setup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v14
+++ v15
@@ -3,7 +3,7 @@
   * creation of the three databases - Quarantine (QF), Preservation (PF), and Digital Repository (DR) 
   * creating the database tables by applying the supplied SQL statements.

-If you like doing things the hard way, read on. Otherwise, please create your databases via pgAdmin by following the [Creating_PostgreSQL_databases_-_pgAdmin_setup] procedure. 
+**Note:** If you like doing things the hard way, read on. Otherwise, please create your databases via pgAdmin by following the [Creating_PostgreSQL_databases_-_pgAdmin_setup] procedure. 

 The following descriptions assume a default installation of PostgreSQL on the machine where the DPR software is being used. 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Allan Cunliffe</dc:creator><pubDate>Tue, 11 Jun 2013 18:25:58 -0000</pubDate><guid>https://sourceforge.net0ee49f8d8efeb7e5d260e7586ddf14cecc71a0bd</guid></item><item><title>Creating_PostgreSQL_databases_-_command-line_setup modified by Allan Cunliffe</title><link>https://sourceforge.net/p/dpr/wiki/Creating_PostgreSQL_databases_-_command-line_setup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v13
+++ v14
@@ -3,7 +3,8 @@
   * creation of the three databases - Quarantine (QF), Preservation (PF), and Digital Repository (DR) 
   * creating the database tables by applying the supplied SQL statements.

-  
+If you like doing things the hard way, read on. Otherwise, please create your databases via pgAdmin by following the [Creating_PostgreSQL_databases_-_pgAdmin_setup] procedure. 
+
 The following descriptions assume a default installation of PostgreSQL on the machine where the DPR software is being used. 

 When PostgreSQL is installed, a user called _postgres_ is usually created with permission to create and destroy databases. The following instructions assume that such a postgres user exists. 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Allan Cunliffe</dc:creator><pubDate>Tue, 11 Jun 2013 18:25:58 -0000</pubDate><guid>https://sourceforge.neta3fb0fe2ce234d6f44c4f0a2044b05ac90d83c39</guid></item><item><title>Creating_PostgreSQL_databases_-_command-line_setup modified by Allan Cunliffe</title><link>https://sourceforge.net/p/dpr/wiki/Creating_PostgreSQL_databases_-_command-line_setup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v12
+++ v13
@@ -108,7 +108,7 @@

 **Note:** If you get an error message about authorisation, you will need to edit the _pg_hba.conf_ file: 

-Go to: C:\Program Files\PostgreSQL\8.x\data\pg_hba.conf 
+Go to: _C:\Program Files\PostgreSQL\8.x\data\pg_hba.conf_

 Change all occurrences of _ident_ to _md5_. 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Allan Cunliffe</dc:creator><pubDate>Tue, 11 Jun 2013 18:25:58 -0000</pubDate><guid>https://sourceforge.net4ddb347c6a9f16ac77c93881d1a66b0ba78ee699</guid></item><item><title>Creating_PostgreSQL_databases_-_command-line_setup modified by Allan Cunliffe</title><link>https://sourceforge.net/p/dpr/wiki/Creating_PostgreSQL_databases_-_command-line_setup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v11
+++ v12
@@ -106,6 +106,18 @@

 **Note:** After prompting for the postgres user's password, this will apply each line of the _create_qf.sql_ file to the qf_local database. Don't be concerned about errors scrolling past for the first hundred or so lines of SQL. These cause no problems but occur because the first parts of the file attempt to apply SQL statements to database tables that don't yet exist. If the same _create_qf.sql_ file is used to later clean out the qf_local database, these errors won't occur. 

+**Note:** If you get an error message about authorisation, you will need to edit the _pg_hba.conf_ file: 
+
+Go to: C:\Program Files\PostgreSQL\8.x\data\pg_hba.conf 
+
+Change all occurrences of _ident_ to _md5_. 
+
+9\. Restart postgresql service: 
+    
+    sudo service postgresql restart
+    
+
+  
 4\. Optional. To check that the database has been created: 

     psql -U postgres qf_local
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Allan Cunliffe</dc:creator><pubDate>Tue, 11 Jun 2013 18:25:58 -0000</pubDate><guid>https://sourceforge.netfc2dd3239698a1ac7b93b3bafeb98f59e2814ea1</guid></item><item><title>Creating_PostgreSQL_databases_-_command-line_setup modified by Allan Cunliffe</title><link>https://sourceforge.net/p/dpr/wiki/Creating_PostgreSQL_databases_-_command-line_setup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v10
+++ v11
@@ -31,6 +31,26 @@

 **Note:** After prompting for the postgres user's password, this will apply each line of the _create_qf.sql_ file to the _qf_local_ database. Don't be concerned about errors scrolling past for the first hundred or so lines of SQL. These cause no problems but occur because the first parts of the file attempt to apply SQL statements to database tables that don't yet exist. If the same _create_qf.sql_ file is used to later clean out the _qf_local_ database, these errors won't occur. 

+**Note:** If you get an error message about authorisation, you will need to edit the _pg_hba.conf_ file: 
+    
+    sudo su -
+    
+    
+    vim /var/lib/pgsql/data/pg_hba.conf
+    
+
+At the bottom of the file, you will see a series of entries with Method of _ident_. Change _ident_ to _md5_, so you get something similar to this: 
+    
+    # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
+    # "local" is for Unix domain socket connections only
+    local   all         all                               md5
+    # IPv4 local connections:
+    host    all         all         127.0.0.1/32          md5
+    # IPv6 local connections:
+    host    all         all         ::1/128               md5
+    
+
+  
 4\. Optional. To check that the database has been created: 

     psql -U postgres qf_local
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Allan Cunliffe</dc:creator><pubDate>Tue, 11 Jun 2013 18:25:58 -0000</pubDate><guid>https://sourceforge.net0325ed7aba247943d8c5de744b377629fdaeb057</guid></item></channel></rss>