Mysql startup error-server PID file cocould not be found resolved

Source: Internet
Author: User


Mysql startup error-server PID file cocould not be found solution [root @ yunhe ~] # Service mysql stopMySQL server PID file cocould not be found! [Failure] www.2cto.com solution: First, check the mysql-related process [root @ yunhe ~] # Ps aux | grep mysq * root 2019 0.0 0.1 6228 1392? S/bin/sh/usr/bin/mysqld_safe -- datadir =/var/lib/mysql -- pid-file =/var/lib/mysql/yunhe. pidmysql 2115 0.0 2.9 353596 30808? Sl/usr/sbin/mysqld -- basedir =/usr -- datadir =/var/lib/mysql -- plugin-dir =/usr/lib/mysql/plugin -- user = mysql -- log-error =/var/lib/mysql/yunhe. err -- pid-file =/var/lib/mysql/yunhe. pid500 4258 0.0 1.6 83432 17484? S gedit/usr/share/mysql/my-medium.cnfroot 5555 0.0 0.0 5936 pts/0 S + grep mysq * if you see the above content, it indicates that mysql-related processes exist, but there is a problem with resource scheduling (as if it is stuck). In this case, we need to close all these stuck processes. [Root @ yunhe ~] # Kill 2019 [root @ yunhe ~] # Kill 20115-bash: kill: (20115)-No process [root @ yunhe ~] # Kill 2115 www.2cto.com and restart mysql [root @ yunhe ~] # Service mysql startStarting MySQL... [OK] [root @ yunhe ~] # Mysql-u root-pEnter password: Welcome to the MySQL monitor. commands end with; or \ g. your MySQL connection id is 1 Server version: 5.6.4-m7 MySQL Community Server (GPL) Copyright (c) 2000,201 1, Oracle and/or its affiliates. all rights reserved. oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. other names may be trademarks of their respectiveowners. type 'help; 'or' \ H' for help. type '\ C' to clear the current input statement. mysql>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.