Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
来源:互联网 发布:美国的排外知乎 编辑:程序博客网 时间:2024/05/21 07:55
这个实在linux下安装mysql的情况,出现了Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
这个错误,然后service mysql start 一直启动不了。
那么可以用一下的方法
#ps -A|grep mysql
显示类似:
3016 ? 00:00:00 mysqld_safe
3090 ? 00:00:31 mysqld
2.#kill -9 3016
3.#kill -9 3090
4.#/etc/init.d/mysql restart
5.#mysql -u root -p
欧克了。
0 0
- ERROR 2002: Can't connect to local MySQL server through socket '/tmp/tmp/mysql.sock' (2)
- ERROR 2002: Can't connect to local MySQL server through socket '/tmp/tmp/mysql.sock' (2)
- Django +MySQL Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- mysql Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- 记录mysql错误:Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- 关于Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)的问题
- 关于Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)的问题
- Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- can't connect to local mysql server through socket '/tmp/mysql.sock'(2) in /var/...
- 关于Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)的问题
- 关于Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)的问题
- 关于Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)的问题
- Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 解决方法
- 问题:Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- XAMPP Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- 事务的原子性,一致性,隔离性,持久性
- android之广播
- Codeforces Round #285 (Div. 2) C - Misha and Forest
- debian下以16进制操作文件,GHEX还是很好用的
- [leetcode 35] Search Insert Position
- Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- unp.h undefined reference to `Socket'
- JDK,JRE,JVM的区别
- Quick cocos2dx-Lua(V3.3R1)学习笔记(10)-----用自带的build_apk生成APK
- 2015.1.12
- [leetcode 38] Count and Say
- 开发者必知:提升Android应用开发性能的十大要点
- PHP验证mysql登录用户名和密码
- Redis教程