婷婷fyt1216 2015-08-14 03:45 采纳率: 33.3%
浏览 2029

linux虚拟机上安装mysql的时候报错

在执行scripts/mysql_install_db --user=mysql的时候出错,
FATAL ERROR: Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
我的etc/hosts文件也有localhost,并且可以ping通,请问该怎么解决呀?
图片说明

  • 写回答

1条回答 默认 最新

  • oyljerry 2015-08-14 04:18
    关注
     jpai@jpai-laptop:mysql-5.1.50-linux-i686-glibc23$ scripts/mysql_install_db --basedir=.
    
    (Remember that we are running this command from the  MYSQL_DOWNLOAD_HOME, so the relative path "." works fine for the basedir).
    
    
    评论

报告相同问题?