Linux MySQL server PID file could not be found!
来源:互联网 发布:类似营养师软件 编辑:程序博客网 时间:2024/06/13 22:36
在执行#service mysql restart
MySQL server PID file could not be found! [失败]
Starting MySQL.........................................................
出现以上问题,说是找不到mysql服务进程ID。
原因是现在的mysql服务进程存在,但是又不能自动关闭,那么就需要我们先把mysql的服务进程kill掉
#ps -ef|grep mysql
root 2436 1 0 2016 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/localhost.localdomain.pid
mysql 2715 2436 0 2016 ? 02:33:32 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/localhost.localdomain.err --pid-file=/var/lib/mysql/localhost.localdomain.pid
root 7029 20424 0 07:58 pts/4 00:00:00 grep mysql
执行下面的命令
#kill -9 2436
#kill -9 2715
杀成现有的进程,重启tomcat服务。
另外讲解一下mysql进程里面的内容:
/usr/sbin/mysqld 指的是mysql运行路径
datadir=/var/lib/mysql 指的是mysql数据文件存放地点
/var/lib/mysql 指的是mysql依赖库的地点
查看mysql安装版本
[root@localhost mysql]# rpm -qa |grep MySQL
MySQL-client-advanced-5.6.10-1.el6.x86_64
MySQL-server-advanced-5.6.10-1.el6.x86_64
强制删除mysql版本
[root@localhost mysql]#rpm -e -nodeps MySQL-client-advanced-5.6.10-1.el6.x86_64(nodeps表示强制删除)
查看文件安装路径
[root@localhost mysql]# whereis mysql
mysql: /usr/bin/mysql /usr/lib64/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz
查找文件运行所在位置
[root@localhost mysql]# which mysql
/usr/bin/mysql
- Linux MySQL server PID file could not be found!
- mysql 启动错误-server PID file could not be found
- mysql启动错误:server PID file could not be found!
- MySQL manager or server PID file could not be found!
- mysql -server PID file could not be found
- mysql 启动错误-server PID file could not be found
- mysql 启动错误-server PID file could not be found
- MySQL server PID file could not be found!
- mysql 启动错误-server PID file could not be found
- mysql 启动错误-server PID file could not be found
- MySQL manager or server PID file could not be found!
- MySQL server PID file could not be found!
- Mysql server PID file could not be found 解决思路
- MySQL server PID file could not be found![失败]
- MySQL server PID file could not be found! 问题解决
- linux安装mysql 报 ERROR! MySQL manager or server PID file could not be found!
- linux下mysql ERROR! MySQL manager or server PID file could not be found!
- linux下mysql 启动异常-server PID file could not be found
- GB28181协议实现简介
- Android开发finish()和System.exit(0);的区别
- 高性能MySQL笔记之索引
- 关于视频播放器拖动点击问题
- C# 相对路径转绝对路径
- Linux MySQL server PID file could not be found!
- PLSQL_Developer8客户端连接远程oracle
- 动态规划--4.最优二叉查找树
- Scala学习——基础
- 使用Android studio开发中的packagename和applicationId
- 老牌IDC景安免费VPS测评
- Spring Bean的生命周期(非常详细)
- VirtualBox安装增强功能及挂载(Linux)
- Android源码添加自定义系统服务