linux下mysql无法启动的处理
来源:互联网 发布:淘宝紫砂壶真假 编辑:程序博客网 时间:2024/06/05 11:29
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
查了下mysql状态,是真正运行中
$ /etc/rc.d/init.d/mysqld status
mysqld (pid 2873) 正在运行...
继续查看mysql进程
ps aux |grep mysql
root 2765 0.0 0.0 108200 1448 ? S Mar09 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/home/mysql --socket=/home/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql
mysql 2873 0.3 0.1 7949156 66076 ? Sl Mar09 244:06 /usr/libexec/mysqld --basedir=/usr --datadir=/home/mysql --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/home/mysql/mysql.sock
root 9173 0.0 0.0 103260 872 pts/1 S+ 10:30 0:00 grep mysql
估计是默认socket有问题
$mysql --socket=/home/mysql/mysql.sock -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 126327
Server version: 5.1.73 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
运行成功。
- linux下mysql无法启动的处理
- linux下mysql无法启动
- linux下mysql无法启动
- Mac环境下MySQL无法启动的处理方法
- Linux下安装mysql后无法启动的解决方法
- Linux下MYSQL无法启动问题
- Linux 本地启动mysql对应的3306端口也启动的情况下无法远程连接
- debian下的mysql无法启动
- CentOS7下无法启动mysql的解决办法
- linux mysql 无法启动
- 解决mysql在linux下找不到mysql.sock无法启动
- linux下MySQL的启动
- LInux下开启LDAP,导致mysql无法正常启动。
- linux下修改mysql数据库编码后无法启动解决办法
- Linux下MySQL服务突然无法正常启动
- mysql innodb启动失败无法重启的处理方法
- Linux mysql安装无法启动 /etc下无mysql配置文件,mysql 无法启动,/var/run/mysqld/mysqld.sock找不到
- linux下启动mysql
- 山东大学项目实训——5月4日
- 浅论H5游戏的技术革新
- Cognitive Radio Cognitive Network Simulator (NS3 based)
- php 无限分类
- 图像语义分割技术-深度卷积网络图像识别
- linux下mysql无法启动的处理
- 小程序wx.request请求封装
- 如何更改linux文件目录拥有者及用户组
- niginx command not found
- C# 入门(12) 转换(conversion)、is 操作符、as 操作符
- svn命令总结
- C#学习之Task 的用法1
- Maven项目在Update Maven之后JRE被改成1.5的解决方法(转载)
- 日常笔记