您的位置:首页 > 数据库 > MySQL

WARNING: The host 'localhost' could not be looked up with /usr/local/mysql//bin/resolveip

2015-11-10 17:40 756 查看
[root@mysqlserver8 mysql]# scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql/ --datadir=/data/mysql/mysql_data --explicit_defaults_for_timestamp

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

原因:不能解析本机主机名

解决办法:

在/etc/hosts添加

192.168.1.100 localhost
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: