当我们执行:

./scripts/mysql_install_db --user=mysql --datadir=/usr/local/mysql/data/mysql

会出现:

Neither host 'xxx' nor 'localhost' could be looked up with
./bin/resolveip
Please configure the 'hostname' command to return a correct
hostname.
If you want to solve this at a later stage, restart this script
with the --force option

这个问题是我们下载MYSQL安装包的时候,我们下载的是32位的,而系统是64位的,所以才会出现这个问题
Logo

更多推荐