'mysqld folder in /var/run/ keeps deleting and re-creating itself

I couldnt start mysql on my ubuntu server and got the error message ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) I checked the /var/run/ directory and noticed the mysqld folder constantly deletes and recreates itself, when i stop the mysql service it stops, but when i start it continues to recreate itself



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source