Skip to main content

MySQL PID could not be found

Comments

4 comments

  • kernow
    Check if the /tmp partition is full. check if /tmp actually has the mysql.sock file. If not create it with: touch /tmp/mysql.sock service mysqld restart
    0
  • cPanelMichael
    Hello :) You may find the following thread helpful, as the error message indicates possible InnoDB corruption: InnoDB Corruption Repair Guide Thank you.
    0
  • speckados
    And after... not use Innodb on mode traditional... use innodb_file_per_table=1 (of course need, dump all and restore form dump after put innodb_file_per_table=1 on your my.cnf and restart mysql) Not best for performance, but quit several problem with Innodb crashes...
    0
  • sf.basilix
    MySQL uses a PID file to know what the process ID is, when running on your system. According to your error, it cannot locate the file, which should be /var/lib/mysql/hostname.pid. If that file doesn't exist, create it by issuing the following command (provided the directory exists too): # touch /var/lib/mysql/hostname.pid check the permissions and ownership of the file is correct as well (use chmod or chown) If all of these exist and MySQL still cannot come online, then you likely have a corrupted database and may need to reinstall from backups.
    0

Please sign in to leave a comment.