Uncaught PDOException

SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Trace in execution order:

require('/var/www/vhosts/pt.ecobike.com/config.php')  on line 7 in /var/www/vhosts/pt.ecobike.com/index.php
   PDO→__construct('mysql:dbname=ecobike_pt;host=localhost', 'tempo', 'for3v3r')  on line 61 in /var/www/vhosts/pt.ecobike.com/config.php
      

Exception was thrown on line 61 in /var/www/vhosts/pt.ecobike.com/config.php

SERVER

VariableValue
USERwww-data
HOME/var/www
FCGI_ROLERESPONDER
QUERY_STRING
REQUEST_METHODGET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_FILENAME/var/www/vhosts/pt.ecobike.com/index.php
SCRIPT_NAME/index.php
REQUEST_URI/
DOCUMENT_URI/index.php
DOCUMENT_ROOT/var/www/vhosts/pt.ecobike.com
SERVER_PROTOCOLHTTP/1.0
GATEWAY_INTERFACECGI/1.1
SERVER_SOFTWAREnginx/1.4.6
REMOTE_ADDR184.73.18.109
REMOTE_PORT57280
SERVER_ADDR37.139.28.230
SERVER_PORT80
SERVER_NAMEpt.ecobike.com
REDIRECT_STATUS200
HTTP_HOSTpt.ecobike.com
HTTP_ACCEPT_ENCODINGx-gzip, gzip, deflate
HTTP_USER_AGENTCCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT_LANGUAGEen-us,en-gb,en;q=0.7,*;q=0.3
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
PHP_SELF/index.php
REQUEST_TIME_FLOAT1430192585.2966
REQUEST_TIME1430192585