我想安装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)
那么,如何解决这个问题呢?
答案 0 :(得分:0)
检查/etc/hosts
并查看127.0.0.1 localhost
。一旦你设置它,它应该工作。