博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Solution for: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
阅读量:7170 次
发布时间:2019-06-29

本文共 829 字,大约阅读时间需要 2 分钟。

Solution for: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Posted by:   ()
Date: June 07, 2008 02:00AM

 

Hi everybody, 
I have got the same problem, but I have solved it by doing the following steps: 
First: Make sure that the owner of /var/lib/mysql and its files and subdirectories is mysql user of mysql group 
to do that run the following command: 
chown mysql.mysql -R /var/lib/mysql/* 
Second: change write permissions to rwxr-xr-x (755) for mysql directory, and all its files and subdirectories, by running the following command: 
chmod 755 -R /var/lib/mysql/* 
now start mysql service by running the following command (Red Hat and may fedora): 
service mysql start 
the error message should disappear and should output: 
Starting MySQL. [ OK ] 

转载于:https://www.cnblogs.com/crazywings/p/3735555.html

你可能感兴趣的文章
区块链开发公司浅析加速人工智能是否能创新.
查看>>
Matplotlib 3.0 可视化工具强势来袭!
查看>>
数据库的备份
查看>>
11、利用Zabbix监控Web性能和可用性
查看>>
数据库测试
查看>>
shell+Python实现简单的链路监控
查看>>
Android学习笔记--Android基础
查看>>
如何看待和学习人工智能?这是五位哈佛博士生的AMA
查看>>
Citrix桌面虚拟化解决方案介绍
查看>>
监控系统Nagios安装
查看>>
Mysql 数据库工具:DB Tracklayer For iPhone
查看>>
Java中HashMap与HashTable,StringBuilder与StringBuffer的区别
查看>>
Android入门第四篇之TableLayout (一)
查看>>
Oracle SQL、PLSQL 绝技之多表插入
查看>>
javascript禁止鼠标右键
查看>>
Linux 安装Resin4.0.40
查看>>
vsftpd的安全设置
查看>>
Linux磁盘Block Size研究备忘
查看>>
部署System Center Cloud Services Process Pack时可能会遇到的问题
查看>>
HTML5大数据处理:初试Web SQL Database
查看>>