red hat liunx mysql 启动失败,如下错误

来源:互联网 发布:require once php 编辑:程序博客网 时间:2024/04/28 18:55
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
原创粉丝点击