zoukankan      html  css  js  c++  java
  • MySQL无法启动:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

    1 详细异常

    ct 11 17:31:51 bd02.getngo.com mysqld[20513]: 2019-10-11T09:31:51.187848Z 0 [Note] /usr/sbin/mysqld: Shutdo
    Oct 11 17:31:51 bd02.getngo.com systemd[1]: Failed to start MySQL Server.
    -- Subject: Unit mysqld.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit mysqld.service has failed.
    --
    -- The result is failed.
    Oct 11 17:31:51 bd02.getngo.com systemd[1]: Unit mysqld.service entered failed state.
    Oct 11 17:31:51 bd02.getngo.com systemd[1]: mysqld.service failed.
    Oct 11 17:31:51 bd02.getngo.com systemd[1]: mysqld.service holdoff time over, scheduling restart.
    Oct 11 17:31:51 bd02.getngo.com systemd[1]: Stopped MySQL Server.
    -- Subject: Unit mysqld.service has finished shutting down
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit mysqld.service has finished shutting down.
    Oct 11 17:31:51 bd02.getngo.com systemd[1]: start request repeated too quickly for mysqld.service
    Oct 11 17:31:51 bd02.getngo.com systemd[1]: Failed to start MySQL Server.
    -- Subject: Unit mysqld.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit mysqld.service has failed.
    --
    -- The result is failed.
    Oct 11 17:31:51 bd02.getngo.com systemd[1]: Unit mysqld.service entered failed state.
    Oct 11 17:31:51 bd02.getngo.com systemd[1]: mysqld.service failed.
    

      

    2 问题原因

    mysql软连接错误问题 
    检查一下文件权限,是否可执行,启动用户是否正确
  • 相关阅读:
    Apache Shiro 使用手册(二)Shiro 认证
    jdk 环境变量
    IDEA 相关整理
    mysql 相关命令
    hbase 迁库移库步骤
    Linux 常用指令整理
    springboot aop + logback + 统一异常处理 打印日志
    查看jar包的jdk版本
    maven 将jar包推送到自己本机的maven库
    jar包内的文件导出的注意点
  • 原文地址:https://www.cnblogs.com/QuestionsZhang/p/11709128.html
Copyright © 2011-2022 走看看