Information about the .pid (pid) file type

Below is all the information we have available on file about the .pid (pid) file type.

.pid
MySQL pid file.

The .pid file is a text file which contains a single line. This records the pid (numeric process identifier) for the MySQL process.

Each time MySQL is started it will write to this file and overwrite any previous contents. The file will be empty if MySQL could not start (in which case the error which prevented it from starting will be recorded in a corresponding .err file).

The .pid file is normally named after the computer (but this can be changed), so its full name will normally be:

computer-name.pid

where computer-name is the name of the computer/server on which MySQL is being run.

Where this is available we would like to include file format information on .pid files, as well as information on how to view or open files of type .pid. If you know of any information which we have missed then please let us know.