deleted the socket file :
rm -vf /var/lib/mysql/mysql.sock
Then I was getting errors at mysql startup :
2018-06-26 18:08:55 140082288351264 [Note] /usr/sbin/mysqld (mysqld 10.1.26-MariaDB) starting as process 1706 ...
2018-06-26 18:08:55 140082288351264 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
[root@vps***** ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.8G 9.3G 19M 100% /
tmpfs 915M 0 915M 0% /dev/shm
So partition is full : deleted quite a bit. Restarted server
restart mysql : getting different error :
2018-06-26 18:15:26 140368591808544 [ERROR] Can't init tc log
2018-06-26 18:15:26 140368591808544 [ERROR] Aborting
Deleted tc.log
rebooted server : mysql is running, and new tc.log file created
Basically, disk full and could not write to tc.log