當我們執行:
./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位的,所以纔會出現這個問題