在centos中安装mysql(mysql-5.5.44-linux2.6-x86_64.tar.gz),执行初始化脚本
scripts/mysql_install_db --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初始化脚本还报如上错误,查看是不是软件版本的问题。
相关推荐
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/...
so nor neither的用法总结PPT学习教案.pptx
work, we rigorously test these questions, and find that deformation stability in
easyOCR文字识别模型
Neither...nor的用法小结.doc
so nor neither的用法总结PPT教案.pptx
Neither_Snow_Nor_Rain_Nor_MITM_ 红蓝对抗 安全对抗 业务安全 安全威胁 金融安全
NeitherPineNorAppleinPineapple文稿PPT课件.pptx
NeitherPineNorAppleinPineapple文稿学习教案.pptx
Neither Motorola nor IBM is to be considered an agent or representative of the other, and neither has assumed, created, or granted hereby any right or authority to the other, or to any third party, to...
Spatial_analysis_methods
Neither myself nor anyone involved with the development of Web Cracker will be liable for the misuse of this program. Use Web Cracker ONLY at your own risk, ONLY for lawful purposes, and ONLY on ...
在进行JSR303验证的学习时,在进行表单跳转时出现了一个问题,解决方法很简单,但是困扰了我很长时间。 原创文章 1获赞 1访问量 16 关注 私信 展开阅读全文 作者:深衫老霖
As neither java nor javax namespace can be modified, javax.security.sasl has been moved to gnusasl.javax.security.sasl. Please note that you have to add java.security.Security.addProvider(new gnu....
Open Host Controller Interface Specification for USB 4.3.1.3.6.3 System Errors.......................................................................................25 4.3.1.3.7 Special ...
错误1:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program 错误2: Neither the JAVA_HOME nor the JRE_HOME ...
all-none-both-either-neither的用法区别.ppt
It is very easy to install Pymacs, as neither Emacs nor Python need to be compiled nor relinked. Emacs merely starts Python as a subprocess, and Pymacs implements a communication protocol between both...
this document is based on material subnitted by various participants during the drafting process,neither aeec nor arinc has made any determination whether these materials could be subjecy to valid ...