postgresql的一些技巧
整理以前的资料,就先记录下来吧
备份:
pg_dump -U postgres sot > c:\sot20050123.back
然后输入口令
createdb 创建数据库
psql -u postgres -d test
进入psql命令行吧
psql test < c:\20050123.back -U postgres
还原数据库
备份:
pg_dump -U postgres sot > c:\sot20050123.back
然后输入口令
createdb 创建数据库
psql -u postgres -d test
进入psql命令行吧
psql test < c:\20050123.back -U postgres
还原数据库

浙公网安备 33010602011771号