add postgresql debug informations
This commit is contained in:
parent
d3c31e0cea
commit
2d9de85e03
1 changed files with 19 additions and 0 deletions
|
@ -1 +1,20 @@
|
|||
pg_dumpall --clean > /srv/database.sql
|
||||
|
||||
Conversion SQL_ASCII vers UTF-8
|
||||
===============================
|
||||
|
||||
Sauvegarde :
|
||||
|
||||
```
|
||||
pg_dumpall -c -E UTF8 > sql.sql
|
||||
```
|
||||
|
||||
Dans le fichier, remplacer "ENCODING = 'SQL_ASCII'" en "ENCODING = 'UTF8'" et remplacer "LOCALE = 'C'" en "LOCALE = 'fr_FR.UTF-8'".
|
||||
|
||||
Arrêter les applications qui utilise les bases.
|
||||
|
||||
Restaurer :
|
||||
|
||||
```
|
||||
psql < sql.sql
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue