Friday, March 26, 2010

PGSQL

su postgres

$pg_dump databasename > achefeli_achefeliciano.sql

drop database achefeli_achefeliciano;

CREATE DATABASE achefeli_achefeliciano ENCODING 'LATIN1' TEMPLATE template0;

psql -d achefeli_achefeliciano -f achefeli_achefeliciano.sql

http://www.postgresql.org/docs/7.4/interactive/app-psql.html

No comments:

Post a Comment