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/resolveipPlease configure the 'hostname' command
·
当我们执行:
./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位的,所以才会出现这个问题
更多推荐
所有评论(0)