英文:
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: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'loaclhost'
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: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'localhost'
答案2
得分: 0
你已经将 localhost
拼写为 loaclhost
。
重新启动 Apache AGE viewer
并将正确的主机名插入为 localhost
或 127.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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论