This question already has an answer here:
After installing Drupal 8 (via installation wizard), trying to run any drush command, getting below error:
drush en views_ui PDOException: SQLSTATE[HY000]  No such file or directory in core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php on line 79 Drush command terminated abnormally due to an unrecoverable error.
Drupal version: 8.2.x
Drush version: 8.1-dev