Error on : connect to local MySQL server through socket

error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' — Missing /var/run/mysqld/mysqld.sock

I tried several solution but nothing worked for me :- so I planned to re-install the mysql server

FIX Debian 10

Removing previous installation https://askubuntu.com/a/852565/836186

Re Installed using following guide for debian 10 https://www.digitalocean.com/community/tutorials/how-to-install-the-latest-mysql-on-debian-10