Maybe helpfull: https://stackoverflow.com/questions/29395452/php-connection-failed-sqlstatehy000-2002-connection-refused "Before I was receiving an error message of: Connection failed: SQLSTATE[HY000] [2002] No such file or directory This was because I had set the servername to localhost"
I am getting the below error when i enter the details on the installer The connection parameters you specified failed to open a connection to the database. The database reported the following error: SQLSTATE[HY000] [2002] No such file or directory