WARNING: The host 'WeiLei' could not be looked up with resolveip.
Posted mr-wei
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WARNING: The host 'WeiLei' could not be looked up with resolveip.相关的知识,希望对你有一定的参考价值。
[[email protected] data]# /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql/ --datadir=/usr/local/mysql/data/
WARNING: The host ‘WeiLei‘ could not be looked up with 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 !
Installing MySQL system tables...
181120 4:37:03 [ERROR] COLLATION ‘latin1_swedish_ci‘ is not valid for CHARACTER SET ‘utf8‘
181120 4:37:03 [ERROR] Aborting
181120 4:37:03 [Note] /usr/local/mysql//bin/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/usr/local/mysql/data/ for more information.
解决方案:
造成这种错误原因是在配置参数时utf8-general_ci写错了,应该是utf8_general_ci,
如果不想重新安装数据库那就在my.cnf文件中[mysqld]下面增加一行:
character_set_server=utf8
以上是关于WARNING: The host 'WeiLei' 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(代码片
WARNING: The host 'db01' could not be looked up with /data/mysql/bin/resolveip. This probabl
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