zoukankan      html  css  js  c++  java
  • WARNING: The host 'r6' could not be looked up with /usr/local/mysql/bin/resolveip.

    初始化MySQL数据库提示以下信息:

    # /usr/local/mysql/scripts/mysql_install_db 
    
    >      --defaults-file=/etc/my.cnf 
    
    >      --basedir=/usr/local/mysql 
    
    >      --datadir=/var/mysql/data 
    
    >      --user=mysql
    
     
    
    WARNING: The host 'r6' could not be looked up with /usr/local/mysql/bin/resolveip.
    
    This probably means that your libc libraries are not 100 % compatible
    
    with this binary MySQL version. The MySQL daemon, mysqld, should work
    
    normally with the exception that host name resolving will not work.
    
    This means that you should use IP addresses instead of hostnames
    
    when specifying MySQL privileges !
    

     解决办法:

    查看hosts文件:

    # more /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    

     添加IP和主机名:

    xxx.xxx.xxx.xxx         r6
    

     然后重新初始化!

  • 相关阅读:
    Beta 冲刺day 6
    Beta冲刺day5
    Beta冲刺day4
    Beta 冲刺day3
    Beta 冲刺day2
    Beta冲刺day1
    Beta预备
    城市安全风险管理项目Postmortem结果
    项目总结
    Alpha冲刺置顶随笔
  • 原文地址:https://www.cnblogs.com/abclife/p/5060073.html
Copyright © 2011-2022 走看看