centos 7 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ビットだったので、この問題が発生しました.