我启动MYSQL时候,为什么总是出现:
Initializing MySQL database: Neither host 'xxx' 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
在网上找了很多办法,都说是改/etc/hosts这个文件,可是我改了还是一样
Initializing MySQL database: Neither host 'xxx' 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
在网上找了很多办法,都说是改/etc/hosts这个文件,可是我改了还是一样
就在配置文件里面加入如下内容:
[mysqld]
skip-name-resolve重新启动。
我的是选用--force执行的,结果为OK