mysql 安装初始化 Neither host nor 'localhost' could be looked up
来源:互联网 发布:一键制作rez源码 编辑:程序博客网 时间:2024/06/07 17:04
来自:http://bbs.itmayiedu.com/article/1511492194450
在 centos 中安装 mysql(mysql-5.5.44-linux2.6-x86_64.tar.gz), 执行初始化脚本
Java 代码 [](javascript:void() “收藏这段代码”)
- scripts/mysqlinstalldb –user=mysql
时, 报 Neither host nor ‘localhost’ could be looked up 错误,查看 hosts 文件
ping localhost,也没问题
网上搜了一下,基本上都是在 hosts 文件中配置 127.0.0.1 主机,但是这里 hosts 文件中已经有了
查了下服务器信息,是 32 位的,而安装的 mysql 是 64 位的,重新下了 32 位的 mysql 安装成功。
所以,如果 hosts 文件无误后,执行 mysql 初始化脚本还报如上错误,查看是不是软件版本的问题。
使用该命令查询 linux 位数。
阅读全文
0 0
- mysql 安装初始化 Neither host nor 'localhost' could be looked up
- 初始化 MySQL 数据库: Neither host 'localhost.localdomain' nor 'localhost' could be looked up with /usr/bin/resolveip
- mysql 安装错误:FATAL ERROR: Neither host '* nor 'localhost' could be looked up with /usr/bin/resolveip
- Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
- WARNING: The host 'localhost' could not be looked up with /usr/local/mysql//bin/resolveip
- WARNING: The host '$hostname' could not be looked up with resolveip.
- This element neither has attached source nor attached Javadoc and hence no Javadoc could be found
- This element neither has attached source nor attached Javadoc and hence no Javadoc could be found
- django.core.exceptions.ImproperlyConfigured: Neither Pillow nor PIL could be imported: No module nam
- _("Neither Pillow nor PIL could be imported: %s") % err django.core.exceptions.ImproperlyConfigu
- This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.
- Android之This element neither has attached source nor attached Javadoc and hence no Javadoc could be
- Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be fo
- The WIFI_SERVICE must be looked up on the Application
- just looked up ente
- mysql:mysql is neither service nor target!?(suse12 sp2 )
- Android studio编译错误二:Error: The WIFI_SERVICE must be looked up on the Application
- Android studio编译错误 Error: The WIFI_SERVICE must be looked up on the Application
- 【PGPortfolio】初期使用调试指南
- 大话水声通信技术---(理论篇)
- 数据结构实验7 建立邻接表
- 书写sql案例
- git使用
- mysql 安装初始化 Neither host nor 'localhost' could be looked up
- MQ消息架构设计五(58到家MQ如何快速实现流量削峰填谷)
- ssm框架整合配置---web.xml,傻傻分不清楚
- JavaWeb笔记之快速了解网络协议
- 代码重构-常量相关
- java反射加载类,并转化为DataFrame
- Hive的用户和用户权限
- Scala高阶函数
- eclipse自动生成的get方法里给字段添加this