Nan*_*edi 1 postgresql postgresql-9.1 postgresql-9.3 postgresql-9.4
我对 postgreSQL 非常陌生,并且正在努力在我的 Eclipese 中创建连接。
这是我到目前为止所做的:
从https://www.postgresql.org/download/windows/安装 PostgreSQL 版本 10
现在我尝试在 Eclipse 中创建连接,但收到错误“致命:用户“testuser”的密码身份验证失败
我检查了一个类似的线程( 从命令行使用 postgresql 获取身份验证失败错误 )但无法解决问题。
能否请你帮忙。
小智 5
要通过命令行连接 PostgreSQL,您必须安装 PostgreSQL 提供的名为“psql”的工具(如果尚未安装)。
然后使用以下命令连接到 PostgreSQL 数据库。
psql -h localhost -p 5432 -U postgres
Run Code Online (Sandbox Code Playgroud)
解释:
localhost: is the hostname of machine where PostgreSQL is installed.
5432 : is the default PostgreSQL port
postgres : is the username of to connect to DB
Run Code Online (Sandbox Code Playgroud)
您的问题的解决方案:
FATAL: password authentication failed for user "testuser"
Run Code Online (Sandbox Code Playgroud)
如指定的错误消息,数据库中不存在用户或您提供给连接的密码不正确。重新验证您的用户名和密码,然后重试。
祝一切顺利。
| 归档时间: |
|
| 查看次数: |
12741 次 |
| 最近记录: |