I don't really know what is happening but you can always create it manually.
In your mysql configuration file - my.cnf
, check for the parameter pid-file
and see where it points. If it is not there, set it manually to -
pid-file = /var/run/mysqld/mysqld.pid
Create the directory /var/run/mysqld/
and give it proper permissions -
sudo mkdir /var/run/mysqld
sudo touch /var/run/mysqld/mysqld.pid
sudo chown -R mysql:mysql /var/run/mysqld