Multiple MySQL running but PID file could not be found

[[email protected] Desktop]# service mysql start
Starting MySQL SUCCESS!
[[email protected] Desktop]# service mysql status
ERROR! Multiple MySQL running but PID file could not be found (4458 4245)

提示如上所述。解决办法:

[[email protected] Desktop]# kill 4458
[[email protected] Desktop]# kill 4245service mysql restart

出现:

ERROR! MySQL server PID file could not be found!

查看mysql运行状态发现正常,并登陆Mysql:

[[email protected] Desktop]# service mysql status
 SUCCESS! MySQL running (4629)
[[email protected] Desktop]# mysql
ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO)
[[email protected] Desktop]# mysql -u root
ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO)
[[email protected] Desktop]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.3-m13 MySQL Community Server (GPL)

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> show databases;
+--------------------------+
| Database                 |
+--------------------------+
| information_schema       |
| cems                     |
| hive                     |
| mysql                    |
| performance_schema       |
| test                     |
| #mysql50#untitled folder |
+--------------------------+
7 rows in set (0.08 sec)
时间: 2024-08-06 07:53:51

Multiple MySQL running but PID file could not be found的相关文章

centOS下msyql启动错误-Multiple MySQL running but PID file could not be found

今天在centOS下装mysql时出现了一个错误: 解决方案就是如图所示kill 4734 kill 4839 最后再执行[[email protected] src]# service mysql start就可以了 centOS下msyql启动错误-Multiple MySQL running but PID file could not be found

mysql无法启动ERROR! MySQL is running but PID file could not be found ?

第一种方法:可能是硬盘满了,清理下垃圾文件. 第二种: 查看下数据库运行状态 /etc/init.d/mysql status提示ERROR! MySQL is running but PID file could not be found先打印MYSQL进程ps aux | grep mysql然后KILL进程kill -9 pid1 pid2 …再启动MYSQL/etc/init.d/mysql start再检查mysql运行状态/etc/init.d/mysql status 提示成功 第

无法启动mySQL解决办法,MySQL is running but PID file could

今天一个客户网站出现无法连接mysql,多方查找原因,原来是空间不足导致. 启动MySQL时,一直停在 MySQL Started.................... 查看状态,结果显示:MySQL is running but PID file could not be found 清理一下磁盘,重启mySQL,一切正常! 要清理的内容: 1.nginx 的日志文件,一般在/home/wwwlogs 文件夹里. 2. MySQL日志文件,一般放在/usr/local/mysql/var文件

ERROR! MySQL is running but PID file could not be found

/etc/init.d/mysql status提示ERROR! MySQL is running but PID file could not be found先打印MYSQL进程ps aux | grep mysql然后KILL进程kill -9 pid1 pid2 …再启动MYSQL/etc/init.d/mysql start再检查mysql运行状态/etc/init.d/mysql status

开启mysql慢查询,重启提示Starting MySQL.The server quit without updating PID file

在my.cnf文件中加入: datadir = /usr/local/mysql/data long_query_time = 1 #记录下查询时间查过1秒. log-slow-queries = /usr/local/mysql/log/db-Test2-slow.log #日志目录. #log-queries-not-using-indexes #表示记录下没有使用索引的查询. 之后,重启mysql,提示: [[email protected] subsys]# service mysql 

mysql 有报错  ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists

sh-4.1# /etc/init.d/mysqld status ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists sh-4.1# /etc/init.d/mysqld start Starting MySQL. ERROR! The server quit without updating PID file (/data1/mysql/mysql.pid). sh-4.1# rm mysql

lnmp1.1 转移mysql数据库的问题 MySQL: Starting MySQL….. ERROR! The server quit without updating PID file

1.安装前修改/etc/my.cnf,加入datadir         = /data/mysql/   再执行sed -i 's/skip-locking/skip-external-locking/g' /etc/my.cnf 之后的命令,将里面的给目录加权限修改为你新的目录2.安装后停止mysql,移动/usr/local/mysql/var/ 到新目录,修改/etc/my.cnf ,查找[mysqld]  ,在下面加入datadir         = /data/mysql/  ,给

启动mysql报错 -- ERROR! The server quit without updating PID file

开发说某个测试环境的mysql,无法重启了,报以下错误提示: # service mysqld restart Shutting down MySQL.. SUCCESS! Starting MySQL. ERROR! The server quit without updating PID file (/usr/local/mysql/data/test.pid). # ps -ef|grep mysql|grep -v grep avahi 697 1 0 Sep16 ? 00:00:02

mysql启动不成功显示The server quit without updating PID file的解决方法

上午在编译安装mysql的时候 就出现标题中的错误,经实践在第二步操作后启动成功,参考链接 链接http://linuxadministrator.pro/blog/?p=225 You may face this error while restarting MySQL. Below are some fix for the same. [[email protected]:- ] $ service mysqld startStarting MySQL… ERROR! The server