Previously, there was never a problem with this, and when it was updated, mysql stopped working. Reinstalled - did not help. Produces such an error

ERROR! MySQL server PID file could not be found! 

I read a lot of things, but I could not solve the problem. Maybe someone has already fixed this

    1 answer 1

    Try adding this line to the file my.cnf.

     pid-file = /var/run/mysqld/mysqld.pid 

    If there is no / var / run / mysqld folder, then you need to create and check it so that mysql has the right to write there, you can do it with three commands from the terminal

     mkdir /var/run/mysqld touch /var/run/mysqld/mysqld.pid chown -R mysql:mysql /var/run/mysqld