centos7安装mysql时,执行scripts/mysql_install_db --user=mysql报错解决方案

当我们执行:

./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位的,所以才会出现这个问题

猜你喜欢

转载自blog.csdn.net/u013631121/article/details/80343433
今日推荐