postgresql登录问题psql : fe_sendauth no password supplied解决方法

Zhang_Martin 2015-07-22 10:50:47
已经安装好了结果通过命令行psql -U postgres -d postgres
出错
psql : fe_sendauth no password supplied解决方法
完全按照这个网页教程安装的(http://jingyan.baidu.com/article/48a42057dfeeb2a92525047e.html)
...全文
20502 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
小小潘多拉 2017-11-16
  • 打赏
  • 举报
回复 1
意思是你没提交密码,你的小键盘的lock关了吗?
GISer_gj 2017-04-15
  • 打赏
  • 举报
回复 1
请问解决了吗?我是在用osm2pgsql导入osm数据时出现这个问题的,提示没有输入密码
NewZhangXiaoLong 2015-08-17
  • 打赏
  • 举报
回复
不对不对 换mysql 或者其它数据库吧
dydy0963 2015-07-27
  • 打赏
  • 举报
回复
如果要createdb 而不想使用密码,则应使用-w选项,且由于配置文件已经设为信任,因此无需输入密码。
dydy0963 2015-07-27
  • 打赏
  • 举报
回复 2
修改认证文件 $PGDATA/pg_hba.conf, 添加以下行, 并 reload使配置立即生效。 host Mydb postgres 192.168.0.0/24 trust [postgres@linux]$ pg_ctl reload -D $PGDATA / service postgresql reload server signaled --服务器端 pg_hba.conf 的配置 # IPv4 local connections: host all all 127.0.0.1/32 trust host Mydb postgres 192.168.0.0/24 trust host all all 0.0.0.0/0 md5

975

社区成员

发帖
与我相关
我的任务
社区描述
PostgreSQL相关内容讨论
sql数据库数据库架构 技术论坛(原bbs)
社区管理员
  • PostgreSQL社区
  • yang_z_1
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧