Linux初始化MySQL数据库报错解决办法 Linux 初始化MySQL 数据库报错解决办法
在Linux CentOS 5 中安装完MySQL (server、devel)之后进⾏初始化
service mysqld start ,执⾏命令报错:
Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
linux安装数据库/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后,启动成功。
感谢阅读,希望能帮助到⼤家,谢谢⼤家对本站的⽀持!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论