The mysql.sock file that is supposed to be located at socket=/var/lib/mysql/mysql.sock on the my.cnf file, is not there. I ran the command:
mysqld_safe --user=mysql &
to restore the file and then I ran:
service mysqld start
The service starts and the file is created correctly but it does not persist after reboot. The file disappears after reboot. What do I need to do to keep the mysql.sock file in the /var/lib/mysql.sock directory after reboot? Any help is appreciated.