Can't connect to DB while installing Drupal 8 Can't connect to DB while installing Drupal 8. DB is located on localhost acording to direct admin but i can get to DB only when using ip address  in advanced options of drupal installation otherwise i get: SQLSTATE[HY000] [2002] No such file or directory. With ip entered it says  following message: SQLSTATE[HY000] [1045] Access denied for user on server....... 

I have tried different  users and db that i have created on server (granted all permissions). No luck.  

I have no problem logging to that DB with that user using phpmyadmin.  What does it seem to be the problem ?
Instead of localhost, try 127.0.0.1