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
```