今天我升级MYSQL到5.1的时候遇到的。写出来共享以下。
1、
[root@localhost mysql]# scripts/mysql_install_db
Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
/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
这个主要是修改/etc/hosts文件
echo "127.0.0.1 localhost.localdomain localhost" /etc/hosts
然后再初始化数据,如果还是同样的错误,那就直接加--...[ 查看全文 ]