---
title: "mysql pid file not found and can't connect to mysql through socket mysql.sock"
author: "ncs478yl"
date: "2012-01-19T15:54:46Z"
tags: []
categories: ["非技术"]
slug: "mysql-pid-file-not-found-and-can-t-connect-to-mysql-through-socket-mysql-sock"
draft: false
lastmod: "2012-01-19T15:54:46Z"
id: 1359412
url: "https://ncs478yl.iteye.com/blog/1359412"
---

mysql pid file not found and can't connect to mysql through socket mysql.sock 
2012年01月18日
　　今天同事A找到我，说是Mysql server X的负载很高，查询很慢。他自己捣鼓了一阵未果后，我们一起看了下。 **# uname -a 
　　**Linux xxx 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux 
　　**# mysql -u root -p -e “select version();”  
　　**+------------+ 
　　| version() | 
　　+------------+ 
　　| 5.1.32-log |  
　　+------------+ 
　　同事A的操作： 
　　A一看mysql server有问题第一反应是重启mysql server，