learn/wsr/postgres-migration

10 lines
295 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Миграция шиндавс -> ляликс
1. Бекапим на винде
pg_dumpall.exe -U postgres -f backup.sql
2. Создаём бд (с тем же именем)
2.1 Запусти SQL SHELL
pgsql -U postgres
createdb iwdm
\q
3. Импортруем
psql -U postgres < backup.sql