数据库连接失败,位于age-viewer。

huangapple go评论60阅读模式
英文:

Database Connection Failed on age-viewer

问题

"Apache Age"在终端上完全正常运行,但Age-viewer显示错误,错误信息如下:

errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'loaclhost'

数据库连接在bin/psql上正常工作,但在age-viewer上显示**"[]:(ENOTFOUND) getaddrinfo ENOTFOUND loaclhost"**。有人能帮我吗?

英文:

Apache Age is fully working through terminal but Age-viewer showing error which is:

<!-- begin snippet: js hide: false console: true babel: false -->

  errno: -3008,
  code: &#39;ENOTFOUND&#39;,
  syscall: &#39;getaddrinfo&#39;,
  hostname: &#39;loaclhost&#39;

Database connection is fully working on bin/psql but on age-viewer it shows "[]:(ENOTFOUND) getaddrinfo ENOTFOUND loaclhost".
Anyone help me plz

答案1

得分: 1

错误消息表示主机地址无效。在主机名字段中要么使用 'localhost' 要么使用 '127.0.0.1'

errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'localhost'

英文:

The error says that the host address is not valid.
Either use 'localhost' or '127.0.0.1' in the hostname field as

 errno: -3008,
 code: &#39;ENOTFOUND&#39;,
 syscall: &#39;getaddrinfo&#39;,
 hostname: &#39;localhost&#39;

答案2

得分: 0

你已经将 localhost 拼写为 loaclhost

重新启动 Apache AGE viewer 并将正确的主机名插入为 localhost127.0.0.1

英文:

you have misspelled localhost as loaclhost.

restart Apache AGE viewer and insert correct host name as localhost or 127.0.0.1

答案3

得分: -1

errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'localhost' (localhost)
correct the spelling mistake and restart ageviewer

英文:

errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'loaclhost' (localhost)
correct the spelling mistake and restart ageviewer

答案4

得分: -1

如其他用户所提到的,'loaclhost' 中有一个拼写错误,应该是 'localhost'。请更正这个错误然后重试。

英文:

As the other users have mentioned, there is a typo in 'loaclhost', it should be 'localhost'. Do correct this and try again.

huangapple
  • 本文由 发表于 2023年5月28日 20:20:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76351458.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定