当前位置:网站首页>PostgreSQL 修改数据库用户的密码
PostgreSQL 修改数据库用户的密码
2022-07-06 13:27:00 【ac.char】
pg_hba.conf,认证设置成md5认证连接出现:
postgresql FATAL: password authentication failed for user "postgres"

编辑pg_hba.conf,将md5认证修改成trust认证,编辑后退出保存
执行pg_ctl reload加载生效
psql连接,用alter role修改密码
执行以下命令
alter role postgres with password '新密码';
查看当前postgresql 有多少用户,及对应的密码
select rolname,rolpassword from pg_authid;
退出psql
编辑pg_hba.conf,将turst认证修改成md5认证,编辑后退出保存
执行pg_ctl reload加载生效
边栏推荐
- The difference between break and continue in the for loop -- break completely end the loop & continue terminate this loop
- uni-app App端半屏连续扫码
- In JS, string and array are converted to each other (II) -- the method of converting array into string
- JS操作dom元素(一)——获取DOM节点的六种方式
- Summary of cross partition scheme
- ICML 2022 | Flowformer: 任务通用的线性复杂度Transformer
- Caching strategies overview
- Divide candy
- @Detailed differences among getmapping, @postmapping and @requestmapping, with actual combat code (all)
- After working for 5 years, this experience is left when you reach P7. You have helped your friends get 10 offers
猜你喜欢

numpy 下载安装

【Redis设计与实现】第一部分 :Redis数据结构和对象 总结

JPEG2000 matlab source code implementation

Sequoia China, just raised $9billion

Study notes of grain Mall - phase I: Project Introduction

愛可可AI前沿推介(7.6)

麦趣尔砸了小众奶招牌

红杉中国,刚刚募资90亿美元
![[sliding window] group B of the 9th Landbridge cup provincial tournament: log statistics](/img/2d/9a7e88fb774984d061538e3ad4a96b.png)
[sliding window] group B of the 9th Landbridge cup provincial tournament: log statistics

【论文解读】用于白内障分级/分类的机器学习技术
随机推荐
JS traversal array and string
guava:Collections.unmodifiableXXX创建的collection并不immutable
Proxy and reverse proxy
麦趣尔砸了小众奶招牌
Why do job hopping take more than promotion?
Absolute primes (C language)
[MySQL] basic use of cursor
Z function (extended KMP)
The use method of string is startwith () - start with XX, endswith () - end with XX, trim () - delete spaces at both ends
First batch selected! Tencent security tianyufeng control has obtained the business security capability certification of the ICT Institute
嵌入式开发的7大原罪
Replace Internet TV set-top box application through digital TV and broadband network
Sequoia China, just raised $9billion
50个常用的Numpy函数解释,参数和使用示例
C # use Oracle stored procedure to obtain result set instance
guava: Multiset的使用
Data Lake (VIII): Iceberg data storage format
After working for 5 years, this experience is left when you reach P7. You have helped your friends get 10 offers
HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
2022 fields Award Announced! The first Korean Xu Long'er was on the list, and four post-80s women won the prize. Ukrainian female mathematicians became the only two women to win the prize in history