Postgresql 技巧

備份sql

pg_dump -f "F:/dump.sql"<file name> -U postgres<database name> -h 10.38.197.120<host name> -p 5432<host port> -O<without owner>post

 

恢復it

psql -f "F:/dump.sql"<file name> -U postgres<database name> -h <host name> -p 5432<host port>file

相關文章
相關標籤/搜索