• Home
  • Services
    • HR Services
      • HR Advisory Services
      • Contract Staffing
      • HR Outsourcing Services
      • Manpower Supply Services
      • Payroll Processing
      • Permanent Placement
      • Recruitment and Placement Services
      • Recruitment Process Outsourcing
      • Staffing Agency Services
    • DBA Support
      • DBA Consultancy Services
      • PostgreSQL Support
    • Website Maintenance
    • CoWorking/Virtual Office Space Solution
  • Courses

    About Courses

    • List Of Courses
    • Become an Instructor
    Greenplum

    Greenplum

    $2,000.00 $1,500.00
    Read More
  • Company
    • FAQs
    • About Us
    • Contact
  • Events
  • Portfolio
  • Blogs
    • Blog – RayaFeeL
    • Blog – PostgreSQL Support
    • Blog – PostgreSQL Migration
    • Blog – All DB’s
    • Blog – Linux
    • Blog – Medical Coding
      • Cart

        0

    Have any question?
    (+91)8838953252
    ITsupport@rayafeel.com
    RegisterLogin
    RayaFeeL
    • Home
    • Services
      • HR Services
        • HR Advisory Services
        • Contract Staffing
        • HR Outsourcing Services
        • Manpower Supply Services
        • Payroll Processing
        • Permanent Placement
        • Recruitment and Placement Services
        • Recruitment Process Outsourcing
        • Staffing Agency Services
      • DBA Support
        • DBA Consultancy Services
        • PostgreSQL Support
      • Website Maintenance
      • CoWorking/Virtual Office Space Solution
    • Courses

      About Courses

      • List Of Courses
      • Become an Instructor
      Greenplum

      Greenplum

      $2,000.00 $1,500.00
      Read More
    • Company
      • FAQs
      • About Us
      • Contact
    • Events
    • Portfolio
    • Blogs
      • Blog – RayaFeeL
      • Blog – PostgreSQL Support
      • Blog – PostgreSQL Migration
      • Blog – All DB’s
      • Blog – Linux
      • Blog – Medical Coding
        • Cart

          0

      THE SERVER QUIT WITHOUT UPDATING PID FILE -MYSQL

      • Home
      • THE SERVER QUIT WITHOUT UPDATING PID FILE -MYSQL

      THE SERVER QUIT WITHOUT UPDATING PID FILE -MYSQL

      • Posted by Nijamutheen J
      • Date February 10, 2019

      MySQL server plays a vital role for your Linux Server. It runs all of your website’s databases, WHM/Cpanel control panel databases etc. MySQL service crash is very commonly faced error. There could be many reasons behind the failure of the service. In this article, we have listed the most common fixes which work on most cases.

      Problem Statement

      MySQL server could not get started.

      Error Message


      The server quit without updating PID file.
       OR
      Starting MySQL… ERROR! The server quit without updating PID file (/var/lib/mysql/server-name.com.pid)

      Solution:

      When you receive these errors on MySQL server, there are lots of solutions available to fix it. Let’s check them out one by one:

      1. Login to your Linux server with root privileges and try to start MySQL service manually.
        /etc/init.d/mysql start ....Or.....sudo /etc/init.d/mysql start
      2. Check if you have already MySQL service running.
        Type following command to determine if there is MySQL service running already.

        ps -aux | grep mysql

        If MySQL service is already running, you will get list of MySQL processes with PIDs. You will have to kill those processes.

        kill -9 PID  // where PID is the process ID of the MySQL processes.
      3. Check ownership of /var/lib/mysql/
        Type the following command to check ownership of MySQL service.

        ls -laF /var/lib/mysql/

        If it’s owner is root, you should change it to MySQL or your_user.

        sudo chown -R mysql /var/lib/mysql/
      4. Take backup of mysql.sock file and remove it. To achieve this, fire following commands:
        cp /var/lib/mysql.sock /var/lib/mysql.sock_bkp
        rm -rf /var/lib/mysql.sock 

        Now, have a try to start MySQL service with following command.

        /etc/init.d/mysql start
      5. Try to find log files with suffix “.err”.
        You will get these files at following path. This files contain actual error messages.

        /var/lib/mysql/your_computer_name.err

        In many cases, this issue is resolved by removing this error files.

      6. Check if my.conf file has been modified recently.If you wish to edit my.conf file, it is recommended to take backup so you can restore it if anything goes wrong. Additionally, you will have to be extra careful that you do not add any invalid characters or line in this file. If you notice any changes to this file, revert it from a known backup you have.

        Navigate to /etc/my.cnf and restore the changes you have made to this file.

      7. Move the log file named ib_logfile in /var/lib/mysql and restart MySQL service.
        Sometimes MySQL service fails to start because it faces difficulty while updating the log files. You can either remove these log files or move to some other folder. These log files will be created automatically once you restart the MySQL server. Following are the commands:

        cd /var/lib/mysql
        mv ib_logfile0 ib_logfile0.bak 
        mv ib_logfile1 ib_logfile1.bak
        mv /var/lib/mysql/ib_logfile* /some/tmp/folder/
        

      Notes

      1. We recommend you to take full backup of folder /var/lib/mysql before you make any changes to MySQL service of your Linux server.
      2. In case you wish to make any changes in these files, it is recommended to take a backup of it.
      3. The path of the MySQL services can be different according to the operating system. For Example:
        Mac OS: /usr/local/var/mysql/
        Linux OS: /var/lib/mysql/

      Looking for more assistance on MySQL? Contact Our Team Immediately

      Contact Us

      Fields with (*) are compulsory.

      • Share:
      Admin bar avatar
      Nijamutheen J

      Nijamutheen J 7+ years of experience in PostgreSQL, Linux admin , web hosting - apache server , Oracle ,mySQL, Mriadb, vertica DB & Server security administrator

      My updated resume is https://www.tutorialdba.com/p/hi-i-have-4.html

      Search

      ADVERTISEMENT

      Latest Posts

      Rayafeel Business proposal
      18Apr2021
      24 Best Coworking Spaces in Chennai You Should Know
      13Apr2021
      Easy to get a Virtual Address in Chennai
      12Apr2021
      Easy to get a Virtual Office in Chennai
      12Apr2021
      What is a Virtual Office? And How to get in chennai ?
      11Apr2021

      Latest Courses

      PostgreSQL

      PostgreSQL

      $600.00 $500.00
      Greenplum

      Greenplum

      $2,000.00 $1,500.00

      Preview Course

      Free

      Recent Forum Topics

      • please let me know pre requirements to increase work_mem
      • how to copy some data in one table to another table in postgres
      • postgres script for finding queries more than 1 hours ?
      • How to take the tables backup in postgres
      • what are the extensions required to be in instance for performance

      2ndquadrant.in

      (+91) 8838953252

      ITsupport@rayafeel.com

      Company

      • About Us
      • Contact
      • Our Team
      • Blog

      COURSES

      • List Of Course
      • Become An Instructor
      • Events
      • Postgres Support Blog

      Support

      • DBA Support
      • Consultancy Services
      • Postgres Migration Blogs
      • Forum

      Recommend

      • Groups
      • Login
      • FAQs
      • SignUp

      IT Services by rayafeel.com. Powered by Rayafeel Technologies Pvt Ltd.

      • Privacy
      • Terms

      Become An Instructor?

      Join thousand of instructors and earn money hassle free!

      Get Started Now

      Login with:

      Login with Google Login with Twitter Login with LinkedIn Login with Microsoft

      Login with your site account

      Lost your password?

      Not a member yet? Register now

      Register a new account

      Are you a member? Login now