red hat liunx mysql 启动失败,如下错误
初始化 MySQL 数据库: Sorry, the host 'bogon' could not be looked up.
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
[失败]
解决涉及命令
1、查看mysql 包情况
rpm -qa | grep mysql
2、查看mysql运行状况
service mysqld status
3、修改host文件
vi编辑host文件
vi /etc/host
:wq 保存修改退出vi
4、启动mysql
service mysqld start
初始化 MySQL 数据库: Sorry, the host 'bogon' could not be looked up.
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
[失败]
解决涉及命令
1、查看mysql 包情况
rpm -qa | grep mysql
2、查看mysql运行状况
service mysqld status
3、修改host文件
vi编辑host文件
vi /etc/host
:wq 保存修改退出vi
4、启动mysql
service mysqld start