Linux 初始化MySQL 数据库报错解决办法
更新时间:2017年05月04日 15:25:27 投稿:lqh
这篇文章主要介绍了Linux 初始化MySQL 数据库报错解决办法的相关资料,需要的朋友可以参考下
Linux 初始化MySQL 数据库报错解决办法
在Linux CentOS 5 中安装完MySQL (server、devel)之后进行初始化
service mysqld start ,执行命令报错:
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后,启动成功。
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
您可能感兴趣的文章:
- Linux连接mysql报错:Access denied for user ‘root’@‘localhost’(using password: YES)的解决方法
- linux 环境 mysql写入中文报错
- linux mount报错:you must specify the filesystem type的解决方法
- thinkphp项目部署到Linux服务器上报错“模板不存在”如何解决
- linux下 root 登录 MySQL 报错的问题
- linux mysql 报错:MYSQL:The server quit without updating PID file
- Linux常见英文报错中文翻译(菜鸟必知)
相关文章
详解CentOS7使用firewalld打开关闭防火墙与端口
本篇文章主要介绍了CentOS7使用firewalld打开关闭防火墙与端口,具有一定的参考价值,感兴趣的小伙伴们可以参考一下。2017-01-01
最新评论