The host 'my-serive' could not be looked up with /usr/local/mysql/bin/resolveip

WARNING: The host 'my-serive' 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 !

执行 :./scripts/mysql_install_db --user.....时出现上面的错误

原因:主机名解析错误。
解决:hosts文件中添加如下内容
  添加上192.168.xxx.xxx rhel6.myexample.com

[root@my-serive scripts]# vi /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.xxx.xxx my-serive

猜你喜欢

转载自blog.csdn.net/m0_37771398/article/details/89048702
今日推荐