当前位置:网站首页>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
加载生效
边栏推荐
- c语言char, wchar_t, char16_t, char32_t和字符集的关系
- [sliding window] group B of the 9th Landbridge cup provincial tournament: log statistics
- js通过数组内容来获取数组下标
- Aike AI frontier promotion (7.6)
- The difference between break and continue in the for loop -- break completely end the loop & continue terminate this loop
- WEB功能测试说明
- jvm:大对象在老年代的分配
- js 根据汉字首字母排序(省份排序) 或 根据英文首字母排序——za排序 & az排序
- 50个常用的Numpy函数解释,参数和使用示例
- Nodejs tutorial let's create your first expressjs application with typescript
猜你喜欢
[sliding window] group B of the 9th Landbridge cup provincial tournament: log statistics
numpy 下载安装
ICML 2022 | flowformer: task generic linear complexity transformer
Study notes of grain Mall - phase I: Project Introduction
Aike AI frontier promotion (7.6)
缓存更新策略概览(Caching Strategies Overview)
039. (2.8) thoughts in the ward
50个常用的Numpy函数解释,参数和使用示例
Sequoia China, just raised $9billion
2017 8th Blue Bridge Cup group a provincial tournament
随机推荐
Michael smashed the minority milk sign
c语言char, wchar_t, char16_t, char32_t和字符集的关系
JS learning notes OO create suspicious objects
跨分片方案 总结
Three schemes of SVM to realize multi classification
【滑动窗口】第九届蓝桥杯省赛B组:日志统计
The biggest pain point of traffic management - the resource utilization rate cannot go up
Shake Sound poussera l'application indépendante de plantation d'herbe "louable", les octets ne peuvent pas oublier le petit livre rouge?
在最长的距离二叉树结点
JS according to the Chinese Alphabet (province) or according to the English alphabet - Za sort &az sort
Torch Cookbook
Aiko ai Frontier promotion (7.6)
Redistemplate common collection instructions opsforzset (VI)
Dialogue with Jia Yangqing, vice president of Alibaba: pursuing a big model is not a bad thing
Nodejs教程之Expressjs一篇文章快速入门
document.write()的用法-写入文本——修改样式、位置控制
js中,字符串和数组互转(一)——字符串转为数组的方法
JS operation DOM element (I) -- six ways to obtain DOM nodes
麦趣尔砸了小众奶招牌
for循环中break与continue的区别——break-完全结束循环 & continue-终止本次循环