容器技术交流

 找回密码
 立即注册
查看: 4179|回复: 5

Can\'t connect to local MySQL

[复制链接]
发表于 2013-11-8 14:10:00 | 显示全部楼层 |阅读模式
Can\'t connect to local MySQL server through socket \'/tmp/mysql.sock\' (2),这个问题其根本原因是日志文件满了,大家清理一下就可以了!
发表于 2013-11-9 14:03:01 | 显示全部楼层
收藏一下。
发表于 2014-5-17 17:12:51 | 显示全部楼层
怎么清理日志
发表于 2014-5-22 16:58:07 | 显示全部楼层
怎么清理日志文件
发表于 2014-5-23 10:00:37 | 显示全部楼层

* 关闭MySQL:mysql-stop
* 启动MySQL:mysql-start
* 重启MySQL:mysql-restart

* 关闭PgSQL:pgsql-stop
* 启动PgSQL:pgsql-start
* 重启PgSQL:pgsql-restart

* 关闭Nginx:nginx-stop
* 启动Nginx:nginx-start
* 重启Nginx:nginx-restart

* 关闭apache:apache-stop
* 启动apache:apache-start
* 重启apache:apache-restart

* 关闭pureftpd:pureftpd-stop
* 启动pureftpd:pureftpd-start
* 重启pureftpd:pureftpd-restart

* 关闭LUM后台:lum-stop
* 启动LUM后台:lum-start
* 重启LUM后台:lum-restart
发表于 2014-5-23 14:56:37 | 显示全部楼层
为什么开机数据库自己不起来,需要root登录后手动
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2024-5-3 01:29 , Processed in 0.026225 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表