zoukankan      html  css  js  c++  java
  • ERROR 2002解决办法 mysql

    [root@localhost ~]# mysql
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    [root@localhost ~]# ps -A|grep mysql
      639 ?        00:00:00 mysqld_safe
      665 ?        00:00:00 mysqld
    [root@localhost ~]# kill -9 639
    [root@localhost ~]# kill -9 665
    [root@localhost ~]# service mysqld status
    mysqld 已死,但是subsys被锁
    [root@localhost ~]# service mysqld restart
    停止 MySQL:                                             [失败]
    启动 MySQL:                                             [确定]
    [root@localhost ~]# service mysqld status
    mysqld (pid 1273) 正在运行...
    [root@localhost ~]# mysql -uroot
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 2
    Server version: 5.0.77-log Source distribution
    
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    
    mysql> 
    
  • 相关阅读:
    Spring总结
    Json
    智能搜索
    Ajax
    include指令和include标签的区别
    jsp状态管理
    Model1
    JavaBean
    JSP内置对象的解析
    镜像地址管理工具nrm
  • 原文地址:https://www.cnblogs.com/frostbelt/p/1961163.html
Copyright © 2011-2022 走看看