[英]PostgreSQL(9.4) Scheduling Agent pgAgent : Couldn't get a connection to the database
I have been trying to schedule a job using pgAgent. 我一直在尝试使用pgAgent安排工作。 But, I am getting the below error:
但是,我收到以下错误:
"Couldn't get a connection to the database"
“无法连接到数据库”
Following are the configurations: 以下是配置:
pgAgent Configuration: pgAgent配置:
Scheduled Job Configuration: 计划的作业配置:
Please help to get it resolved. 请帮助解决它。
I have resolved the issue. 我已经解决了这个问题。 I did make the credential entry " localhost:5432:testing:postgres: [Enter password] " in file " pgpass.conf " which exist at location " C:\\Users\\sys*[service username]*\\AppData\\Roaming\\postgresql ".
我确实在位置“ C:\\ Users \\ sys * [服务用户名] * \\ AppData \\ Roaming \\ postgresql ”存在的文件“ pgpass.conf ”中创建了凭据条目“ localhost:5432:testing:postgres: [输入密码] ” ”。 Now it is working perfectly.
现在它运行良好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.