当前位置:网站首页>PostgreSQL modifies the password of the database user
PostgreSQL modifies the password of the database user
2022-07-06 21:39:00 【ac.char】
pg_hba.conf
, Authentication set to md5
Authentication connection appears :
postgresql FATAL: password authentication failed for user "postgres"
edit pg_hba.conf
, take md5
The certification is modified to trust
authentication , Exit saving after editing
perform pg_ctl reload
Loading takes effect
psql
Connect , use alter role
Change Password
Execute the following command
alter role postgres with password ' New password ';
View the current postgresql How many users , And the corresponding password
select rolname,rolpassword from pg_authid;
sign out psql
edit pg_hba.conf
, take turst
The certification is modified to md5
authentication , Exit saving after editing
perform pg_ctl reload
Loading takes effect
边栏推荐
- 中国白酒的5场大战
- JS操作dom元素(一)——获取DOM节点的六种方式
- Guava: three ways to create immutablexxx objects
- Why does MySQL index fail? When do I use indexes?
- HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
- 跨分片方案 总结
- C language char, wchar_ t, char16_ t, char32_ Relationship between T and character set
- Fastjson parses JSON strings (deserialized to list, map)
- Redistemplate common collection instructions opsforlist (III)
- El table table - sortable sorting & disordered sorting when decimal and% appear
猜你喜欢
for循环中break与continue的区别——break-完全结束循环 & continue-终止本次循环
50 commonly used numpy function explanations, parameters and usage examples
中国白酒的5场大战
PostgreSQL 修改数据库用户的密码
麦趣尔砸了小众奶招牌
对话阿里巴巴副总裁贾扬清:追求大模型,并不是一件坏事
Internet News: Geely officially acquired Meizu; Intensive insulin purchase was fully implemented in 31 provinces
红杉中国,刚刚募资90亿美元
The difference between break and continue in the for loop -- break completely end the loop & continue terminate this loop
Enhance network security of kubernetes with cilium
随机推荐
数字化转型挂帅复产复工,线上线下全融合重建商业逻辑
Study notes of grain Mall - phase I: Project Introduction
[Li Kou brush questions] 32 Longest valid bracket
JS traversal array and string
Nodejs tutorial expressjs article quick start
string的底层实现
50 commonly used numpy function explanations, parameters and usage examples
JS learning notes OO create suspicious objects
Ravendb starts -- document metadata
Fastjson parses JSON strings (deserialized to list, map)
Forward maximum matching method
嵌入式开发的7大原罪
js之遍历数组、字符串
抖音将推独立种草App“可颂”,字节忘不掉小红书?
039. (2.8) thoughts in the ward
C language: comprehensive application of if, def and ifndef
爬虫实战(五):爬豆瓣top250
Sequoia China, just raised $9billion
【力扣刷题】一维动态规划记录(53零钱兑换、300最长递增子序列、53最大子数组和)
The underlying implementation of string