1. backup
pg_dump -h localhost -U [user name] -W -b -f [파일명] -t [테이블명] --inserts [스키마명]
* 전체 백업
pg_dump -U [user name] [스키마명] > [파일명]
mysql -u [user name] -ptest < [파일명]
728x90
'Database ( DB ) > Database' 카테고리의 다른 글
mysql drop table, create table (with auto_increment) (0) | 2019.08.04 |
---|---|
mysql unix time (0) | 2019.08.04 |
postgresql db 접속 (0) | 2019.08.04 |
postgresql table row count (0) | 2019.08.04 |
postgresql 활동내역 확인 (0) | 2019.08.04 |