linux版本信息:
uname -a
Linux iZwz9e3mzj49buqexsjz82Z 3.13.0-86-generic #130-Ubuntu SMP Mon Apr 18 18:27:15 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux安装mysql版本:
mysql-5.6.39-linux-glibc2.12-x86_64.tar.gz看网上教程解压安装到:
 ./scripts/mysql_install_db --user=mysql
这一步时,抛出下面错误信息:
FATAL ERROR: Neither host 'iZwz9e3mzj49buqexsjz82Z' nor 'localhost' could be looked up with
/usr/bin/resolveip
Please configure the 'hostname' command to return a correct
hostname.
If you want to solve this at a later stage, restart this script
with the --force option不是太懂,求大神指点;在线等;

解决方案 »

  1.   

    英文意思是看一下hosts文件和resolv.conf文件,用hostname命令设置一下主机名
      

  2.   


    resolv.conf是系统文件还是mysql的文件,在哪个位置,主机名又需要修改成什么,随便吗?
    能具体说清楚吗
      

  3.   

    https://blog.csdn.net/itblog/article/details/2697391
    参考这篇文章试下
      

  4.   

    mysql是常见软件,直接用发行版自带的mysql就好了,方便快捷,稳定可靠
    sudo aptitude install mysql-server