Problem: After install Drupal 8, and install Drush for that Drupal 8 instance. The error below occur after running drush cr

Solution:

sudo mkdir /var/mysql
cd /var/mysql
sudo ln -s /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock

Related Issue: https://blog.kylehuynh.com/sqlstatehy000-2002-no-such-file-or-directory/