Linux 初始化MySQL 数据库报错解决办法
Linux初始化MySQL数据库报错解决办法
在Linux CentOS5中安装完MySQL(server、devel)之后进行初始化
servicemysqld start,执行命令报错:
Neitherhost'localhost.localdomain'nor'localhost'couldbelookedupwith /usr/bin/resolveip Pleaseconfigurethe'hostname'commandtoreturnacorrecthostname.
错误:
解决办法
1、查看/etc/hosts,内容如下:
#Donotremovethefollowingline,orvariousprograms #thatrequirenetworkfunctionalitywillfail. ::1localhost.localdomainlocalhost
2、将::1修改为127.0.0.1后,启动成功。
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
热门推荐
10 给女儿祝福语简短精辟
11 猪年幽默祝福语简短
12 弟弟的祝福语简短霸气
13 生日祝福语古语简短创意
14 高考给舍友祝福语简短
15 新年简短的英文祝福语
16 日常祝福语简短语客户
17 祝福语简短创意闺蜜
18 简短中秋祝福语朋友结婚