Pgsql導入導出
- 鏈接
```
psql -U userName dbName -h host -p port
```
- 導入
```
psql -U postgres -W -h 127.0.0.1 -p 5432 -d pre_cartoon_us -f /home/ubuntu/cartoon/back.sql
```
- 刪庫
```
dropdb -h 127.0.0.1 -p 5432 -U postgres -W pre\_cartoon\_us
```
- 創建
```
createdb -h 127.0.0.1 -p 5432 -U postgres -W pre_cartoon_us
```