ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

This happens at WSL because installed services need to be started manually.

sudo /etc/init.d/mysql start