初始化 MySQL 数据库: Neither host 'localhost.localdomain' nor 'localhost'

回复 收藏
初始化 MySQL 数据库: Neither host 'localhost.localdomain' nor 'localhost' could be loo
Neither host 'localhost.localdomain' nor 'localhost' could be looked up with

/usr/bin/resolveip

Please configure the 'hostname' command to return a correct hostname.
错误:
解决办法
1、查看/etc/hosts,内容如下:

# Do not remove the following line, or various programs

# that require network functionality will fail.

::1 localhost.localdomain localhost

2、将::1修改为127.0.0.1后,启动成功。
2016-04-17 17:43 举报
已邀请:
0

沈诚

赞同来自:

赞~

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: