MySQL PID could not be found
I run a server that hosts around 200 websites.
After a power outage yesterday, MySQL has failed to come back online.
A tail of hostname.err returns:
A restart returns:
Would anyone happen to have any idea what is happening here? Thanks in advance
150220 9:44:28 InnoDB: highest supported file format is Barracuda.
InnoDB: The user has set SRV_FORCE_NO_LOG_REDO on
InnoDB: Skipping log redo
InnoDB: Error: tried to read 16384 bytes at offset 0 4915200.
InnoDB: Was only able to read 4096.
InnoDB: Fatal error: cannot read from file. OS error number 17.
150220 9:44:32 InnoDB: Assertion failure in thread 139944215033600 in file os0file.c line 2538
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
09:44:32 UTC - mysqld got signal 6 ;
A restart returns:
[/var/lib/mysql]# service mysql restart
MySQL server PID file could not be found! [FAILED]
Starting MySQL.............................................[FAILED]...The server quit without updating PID file (/var/lib/mysql/hostname.pid).
Would anyone happen to have any idea what is happening here? Thanks in advance
-
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 -
Hello :) You may find the following thread helpful, as the error message indicates possible InnoDB corruption: InnoDB Corruption Repair Guide Thank you. 0 -
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 -
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.
Comments
4 comments