| 38 | |
| 39 | |
| 40 | New database with the backup roe_2010_03_01 |
| 41 | This database is called I'll called this new version roe2010 |
| 42 | {{{ |
| 43 | REM================================================ |
| 44 | REM Copier coller les commandes dans une invite de commande |
| 45 | - Ouvrir une fenêtre d'Invite de commandes : |
| 46 | 1) Cliquez sur Démarrer/Exécuter... |
| 47 | 2) Dans la zone de texte Ouvrir : saisissez : cmd et validez par OK. |
| 48 | REM================================================ |
| 49 | |
| 50 | REM================================================ |
| 51 | REM Script pour Céline (la connexion change - p 5432) |
| 52 | REM================================================ |
| 53 | REM Création de la base de donnée |
| 54 | REM correspond au point 1 de http://62.160.92.241:8066/trac/wiki/CookBook%20shptopostgres |
| 55 | C:\"Program Files"\PostgreSQL\8.4\bin\psql -p 5432 -U postgres -c "CREATE DATABASE ROE2010 WITH OWNER = postgres template=postgis ENCODING = 'UTF8' LC_COLLATE = 'French_France.1252' LC_CTYPE = 'French_France.1252' CONNECTION LIMIT = -1;" |
| 56 | cd C:\Program Files\PostgreSQL\8.4\bin\ |
| 57 | pg_restore.exe --host localhost --port 5432 --username postgres --dbname "ROE2010" --verbose "D:\Celine Jouanin\ROE2010\roe_2010_03_01.backup" |
| 58 | }}} |
| 59 | |
| 60 | A new table has been added in this new database in public : departements_www |