0
点赞
收藏
分享

微信扫一扫

PostgreSQL数据库登录、备份恢复

40dba2f2a596 2022-01-28 阅读 35

PostgreSQL数据库登录、备份恢复

数据库登录

 psql -h '你的ip' -p 5432 -U '用户组' '数据库'
 举例: psql -h localhost -p 5432 -U test 2021_12_6

数据库备份恢复命令

psql -h '你的ip' -p 5432 -U '用户组' '要恢复的数据库' -f  'sql文件地址'
举例:
psql -h localhost -p 5432 -U test 2021_12_6 -f /home/dump.sql 
举报

相关推荐

0 条评论