gpt4 book ai didi

mysql - resolveip 某些域但错误?

转载 作者:太空宇宙 更新时间:2023-11-04 12:17:11 25 4
gpt4 key购买 nike

我想安装mysql。我的指令:

[root@qinyouyi ~]# service mysqld start
Initializing MySQL database: Neither host '`qinyouyi`' nor '`localhost`' could be looked up with /usr/bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with the --force option
[FAILED]

2.所以,我试试这个:

[root@qinyouyi ~]# resolveip www.baidu.com
Segmentation fault (core dumped)

那么,如何解决这个问题呢?

最佳答案

检查 /etc/hosts 并查看 127.0.0.1 localhost。一旦你设置它应该工作。

关于mysql - resolveip 某些域但错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47118269/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com