我忘记了本地安装(Ubuntu 20.04)的 postgres 密码。
我已经安装并运行了 postgres
henry@henry-Apollo:/$ service postgresql status
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
Active: active (exited) since Thu 2021-08-19 18:16:09 BST; 2 days ago
Main PID: 1924 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 18895)
Memory: 0B
CGroup: /system.slice/postgresql.service
Aug 19 18:16:09 henry-Apollo systemd[1]: Starting PostgreSQL RDBMS...
Aug 19 18:16:09 henry-Apollo systemd[1]: Finished PostgreSQL RDBMS.
我试图pg_hba.conf
根据我看到的几篇解释重置密码的过程的帖子来查找。
sudo find / -type d -name "pg_hba.conf"
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied
我找不到文件。请问如何重设密码。
谢谢