首页 > 数据库技术 > 详细

Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with

时间:2014-09-28 23:45:18      阅读:3044      评论:0      收藏:0      [点我收藏+]

Linux系统下启动MySQL报错:Neither host ‘localhost.localdomain‘ nor ‘localhost‘ could be looked up with

摘要

Linux系统下安装完MySQL,启动MySQL报错:Neither host ‘localhost.localdomain‘ nor ‘localhost‘ could be looked up with... 
Linux系统下装完MySQL,然后重启动时报错: 

bubuko.com,布布扣


解决方法: 
查看cat /etc/hosts 发现什么文件也没有,编辑内容相关配置。 
vim /etc/hosts 输入以下内容:127.0.0.1localhost.localdomain localhost 

bubuko.com,布布扣

然后重新启动MySQL 

bubuko.com,布布扣

正常启动OK了~ 

Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with

原文:http://blog.csdn.net/dongqinliuzi/article/details/39648627

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!