Projekt

Allgemein

Profil

Setup pqsql91 dbms » Historie » Version 2

Jeremias Keihsler, 13.01.2017 13:58

1 1 Jeremias Keihsler
h1. Install PostgreSQL 9.1
2
3
* Download @Postgresql@ from https://www.postgresql.org/download/windows/
4
* Install @Postgresql@ 
5
** follow all screens with default-value (just @NEXT@) until
6
7
!{width 500}postgres_install_password.png!
8
* enter @project-default@-password twice, the one starting with **"1"** and ending with **"s"**
9
* follow again all screens until copying of files starts
10
11
!{width 500}postgres_install_copy.png!
12
* as soon as copying has finished
13
* **uncheck** @launch stack-builder@
14
15
!{width 500}postgres_install_finish.png!
16
* Finish
17
18
h1. Restore production DB
19
20
open @console@ via @WINDOWS+r@ 
21
@cmd@
22 2 Jeremias Keihsler
23 1 Jeremias Keihsler
<pre><code class="bash">
24
"c:\Program Files (x86)\postgresql\9.1\bin\psql.exe" -U postgres -f "c:\users\OMB\Desktop\pg_dumpall.sql"
25
</code></pre>
26
enter the usual @project-password@
27
28
h1. Redirect DB from old server to new server
29
30
open @console@ via @WINDOWS+r@ 
31
@cmd@
32
<pre><code class="bash">
33
c:\windows\system32\odbcad32.exe
34
</code></pre>
35
* goto @System DSN@
36
37
!{width 500}postgres_odbc_1.png!
38
* select **12005** and @configure@
39
40
!{width 500}postgres_odbc_2.png!