在docker里恢复bakcup格式的数据库,结果提示role "root" does not exist

解决方法:

切换用户:

su - postgres

 

然后再次运行命令:

pg_restore --dbname=数据库名 --jobs=4 --verbose data.backup

  

 

相关文章:

  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2021-08-02
  • 2022-03-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案