ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
[TOC] ### 重置密码 1. 修改data目录下的 pg_hba.conf 文件 `,全都改为`trust` 2. 进入 bin 布姆 ``` psql -U postgres postgres=# alter user postgres with password '你要设置的密码'; postgres=# \q ``` 设置密码后 按 `\q` 提出即可 3. 重新启动postgres