sql - 如何使用您的管理员详细信息登录 psql
问题描述
嗨,我正在关注以下教程
https://www.youtube.com/watch?v=qw--VYLpxG4&t=2224s
当我将 psql 添加到我的路径中然后在终端中输入它时,它会询问我的管理员数据,然后它会显示这个
psql: error: FATAL: password authentication failed for user "aarushsharma"
如何找到 aarushsharma 的密码?
解决方案
尝试将 pg_hba.conf 文件中的 METHOD 从 md5 更改为 trust,重新启动 postgresql 服务器并更改您的用户密码
使用密码“your_password”更改用户 aarushsharma;
并再次将 METHOD 设置为 md5
推荐阅读
- wordpress - Wordpress Multisite SMTP 在其他网络站点上不起作用
- c# - 我可以/应该通过将事件设置为静态绑定和实例绑定来“共享”一个事件吗?
- mysql - 如何在 R 中使用日期进行过滤连接?
- c# - 异常无法为表中的标识列插入显式值
- javascript - npm install 从 package-lock.json 中移除 react 路由器
- php - Access-Control-Allow-Methods 列表中不存在请求方法 PUT
- wordpress - wordpress 站点中发生未知的 302 重定向,将 https 重定向到 http
- r - 聚类分析
- python - 使用大查询下载数据
- python - Pylint:如何使用属性类指定自定义属性装饰器?