![](/img/trans.png)
[英]Changing salt with no effect: Why does the hashed password not change for different salts?
[英]Changing user password in PgAdmin on mac
我在 mac 上使用 gAdmin。 到目前為止,我還沒有弄清楚如何運行桌面版,所以我正在運行 web 應用程序。 我想更改用戶postres
的密碼。 原因是,我正在嘗試使用以下方法將 R 連接到 postres:
db <- 'dvdrental' #provide the name of your db
host_db <- "localhost"
db_port <- '5432'
db_user <- "postgres"
db_password <- " " # I typed the master password in, as I do not remember setting up this user/password
con<-dbConnect(RPostgres::Postgres(), dbname = db, host=host_db, port=db_port, user=db_user, password=db_password)
但我不斷收到以下錯誤:
Error: FATAL: password authentication failed for user "postgres".
這是更改用戶postgres
密碼的原因如何在 Mac 上使用 webapp 更改 PgAmin4 中的用戶密碼?
在 PgAdmin4 中,如果您要更改登錄時同一用戶的密碼,則需要 select 從瀏覽器樹中連接數據庫。 一旦你這樣做了,“對象”菜單“更改密碼...”選項。
如果您以超級用戶身份登錄服務器並想更改其他用戶/角色的密碼,請從樹中右鍵單擊該用戶/角色(或用於該功能的任何 mac)並選擇“屬性.. ."。 然后在“定義”選項卡下有一個地方可以輸入新密碼。 請注意,此方法較差,因為服務器以純文本形式接收密碼(一旦完成任何 ssl 解密),因此最終會以明文形式出現在日志文件中。
為什么要限制自己使用 PgAdmin4? psql
有\password
,它做得更好。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.