Mysql启动失败,Initializing MySQL database: Neither host
linux下Mysql启动失败,提示:
[root@localhost ]# service mysqld start Initializing MySQL database: Neither host 'localhost' nor 'localhost' could be looked up with /usr/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 [失败] [root@localhost]#
问题解决:在 /etc/hosts里面添加:
127.0.0.1 localhost.localdomain localhost链接:http://www.linuxquestions.org/questions/showthread.php?t=499251聚划算