pg_dump without/forgot password

这篇具有很好参考价值的文章主要介绍了pg_dump without/forgot password。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Background

I shared the "Qlik Sense Repository Back up and Restore" in the past , but somehow we don't know or forgor our repository password , and you don't know how to backup it . No worries , you can follow my step to add whitelist in pg_hba_conf to allow you backcup by pg_dump with any password .(154条消息) Qlik Sense Repository Back up and Restore_Moshow郑锴的博客-CSDN博客

pg_dump without/forgot password

 

Solution

first at all , we need to sort out some questions:

1.how to set whitelist ?

by setting the pgsql pg_hba.conf , in database level

2.where the pg_hba.conf in qlik sense ?

path is (TBC)

3.how to add trust connections in pg_hba.conf?

default the method should be md5 , change it from md5 to trust , which means you don't need to input the password in server local any more , but be care and remember to revert it back once done . also remember it only taken effect when you call the command or connect to repository database by the IP you confured in pg_hba.conf

# IPv4 local connections: host    all             all             127.0.0.1/32            trust

4.How to use pg_dump to backup repository/pgsql?

you can refer to offical document to study how it works . 

pg_dump (postgres.com)http://www.postgres.com/docs/12/app-pgdump.html

If your deployment includes a local database on the central node that was installed using the Qlik Sense setup program, the location will be:
%ProgramFiles%\Qlik\Sense\Repository\PostgreSQL\<database version>\bin.
Note:If you installed PostgreSQL manually, the location will be:
%ProgramFiles%\PostgreSQL\<database version>\bin.

Run the following command:
pg_dump.exe -h localhost -p 4432 -U postgres -b -F t -f "c:\QSR_backup.tar" QSR
 

Easter egg

happy children's day . hop you can keep the childlike enthusiasm/simplicity/delight ~文章来源地址https://www.toymoban.com/news/detail-470393.html

到了这里,关于pg_dump without/forgot password的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 微信小程序 background多个background背景图叠加以及连写注意事项

    background: url(\\\'https://xxxxxxxx.com\\\') no-repeat top/100% auto,linear-gradient(318deg, #3F0000 0%, #A9143A 100%); 效果: 坑点: 1:多个背景图叠加时(渐变也相当于图片)以逗号分割,越靠前图片叠加时层级越高。网上搜索时发现找到的都是说越靠后层级越高,但我测试的时候确实是越靠前越高。

    2024年02月15日
    浏览(42)
  • CSS background 背景

    background 属性为元素添加背景效果。 它是以下属性的简写,按顺序为: background-color background-image background-repeat background-position background-size background-origin background-clip background-attachment 以下所有示例中的 花花.jpg 图片的大小是 48×48 。 background-color 指定元素的背景色。 背景图片默

    2024年02月11日
    浏览(38)
  • CSS的background 背景图片自动适应元素大小,实现img的默认效果 background-size:100% 100%;

    CSS的background 背景图片自动适应元素大小,实现img的默认效果 background-size:100% 100%; 关键是 background-size:100% 100%; background-size:100% 100%; background-size:contain; 保持纵横比, 容器部分可能空白 background-size:cover; 保持纵横比, 图像可能指显示部分 background-size:100% 100%; 不保持纵横比, 背景图像

    2024年02月20日
    浏览(31)
  • css设置background背景视频

    通过CSS设置背景视频可以使用HTML5的video标签。具体步骤如下: 1.在HTML中添加video标签,并设置class为bg-video。 2.在video标签中添加source标签,用于指定视频文件的路径和类型。 3.在CSS中设置bg-video的样式,包括绝对定位、宽高等属性。 4.在CSS中设置z-index属性,确保视频在其他元

    2024年04月10日
    浏览(74)
  • .net core background service

    之前聊过如何在.net core 中添加后台服务, 当时使用的是BackgroundService的形式,这里使用IHostedService接口 StartAsync应该限于短时间运行的任务,因为托管服务是顺序运行的,并且在StartAsync运行完成之前不会启动其他服务。 https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-se

    2024年02月13日
    浏览(36)
  • CSS 之 background 系列属性详解

    一、background总览 1、简介 background 属性是所有背景属性的缩写,通常建议在代码中使用该缩写属性,而不是使用多条单独的背景属性,因为该缩写属性在老版本浏览器中支持性更好,而且书写简便。未写在缩写属性中的其他背景属性,则会采用默认值。 但我个人不提倡一味的

    2024年02月12日
    浏览(36)
  • 微信小程序wxss background

    微信小程序里遇到一个关于background的小问题,记录一下啦。 看,这是问题: 解决的方法: 其实人家已经告诉了解决方法 但是我愿意再抄一遍 1.把background属性 写为 采用 image 组件 沉底的方式实现 2.微信小程序view background-image 不能够直接显示本地,但是可以 直接显示网络图

    2024年02月16日
    浏览(39)
  • 关于 background-attachment 属性详解

    目录 1、background-attachment的官方说明 2、background-attachment的值 3、关于个人的理解  3.1、默认值 scroll 3.2、fixed 3.3、local 4、个人总结 设置背景图像是否固定或者随着页面的其余部分滚动 这句话很简洁,简洁到我无法去理解,所以我决定用我自己的想法去理解。 background-attachm

    2024年02月12日
    浏览(23)
  • visual studio background download 关闭

    某天我的电脑风扇疯狂响,打开任务管理器,发现visual studio background download进程导致的,这是一个visual studio的更新程序,如何关闭它呢?参考:​​​​​​(2 封私信 / 80 条消息) 如何彻底阻止Visual Studio 2019自动更新? - 知乎 (zhihu.com)右击开始图标,依次选择“计算机管理”

    2024年02月11日
    浏览(44)
  • CSS:background 复合属性详解(用法 + 例子 + 效果)

    background-image:linear-gradient(角度(deg),颜色1,颜色2, …); 线性渐变(渐变方向,颜色1-颜色2-…) 在 背景颜色之上 横向repeat-x, 纵向repeat-y; 默认repeat,可设为不重复no-repeat background-repeat:round; 个体完整,微调大小 background-repeat:space; 调整空隙 background-size:宽度,高度; 单位可以是

    2024年02月13日
    浏览(26)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包