No longer able to connect to MySQL through socket

I was trying to do replication and setup my server as slave. i first changed permissions using sudo chmod 777 /etc/mysql/my.cnf then sudo chown user:user -R /etc/mysql then i tried installing...

Relevant tags