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位的,所以纔會出現這個問題
發佈了51 篇原創文章 · 獲贊 221 · 訪問量 20萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章