码迷,mamicode.com
首页 > 数据库 > 详细

WARNING: The host 'db01' could not be looked up with /data/mysql/bin/resolveip. This probably means that your libc libraries are not 100 % compatible with this binary MySQL version......

时间:2019-12-24 16:58:20      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:主机   简单   work   data   aries   instead   xeon   主机名   mon   

  Linux系统安装MySQL,环境参数:

  硬件配置:
CPU: Xeon(R) CPU E5-2650 v4 @ 2.20GHz 8核
内存:16G
硬盘:系统盘200GB 数据盘1TB
  操作系统
CentOS 7.2 64位
  数据库
MySQL 5.6.43

  执行scripts/mysql_install_db --user=mysql脚本报错:

WARNING: The host ‘db01‘ could not be looked up with /data/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 !

  解决办法很简单,把主机名和IP对应关系写入/etc/hosts下即可,我的脚本如下:

echo "10.36.7.155 db01" >> /etc/hosts

WARNING: The host 'db01' could not be looked up with /data/mysql/bin/resolveip. This probably means that your libc libraries are not 100 % compatible with this binary MySQL version......

标签:主机   简单   work   data   aries   instead   xeon   主机名   mon   

原文地址:https://www.cnblogs.com/JohanChan/p/12092337.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!