psql: FATAL: role “username” does not exist

psql數據庫運行數據報錯:

psql: FATAL: role “username” does not exist

由於當前的用戶爲“username”

解決方案:

sudo -s -u postgres

把當前用戶切換成postgres,運行就沒有問題了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章