WARNING: The host 'db01' could not be looked up with /data/mysql/bin/resolveip. This probabl
Posted 胜金
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WARNING: The host 'db01' could not be looked up with /data/mysql/bin/resolveip. This probabl相关的知识,希望对你有一定的参考价值。
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 probabl的主要内容,如果未能解决你的问题,请参考以下文章
WARNING: The host '$hostname' could not be looked up with resolveip. (转)
Warning: Permanently added the RSA host key for IP address '52.74.223.119' to the list of kn
Warning: Permanently added the RSA host key for IP address ‘13.250.177.223‘ to the list of known(代码片
Permanently added the RSA host key for IP address '192.30.253.113' to the list of known host
关于fastapi开启多个服务实例时遇到WARNING: You must pass the application as an import string to enable 'reloa
Mac 下locate命令使用问题WARNING: The locate database (/var/db/locate.database) does not exist.