Initialization Error

Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => simpleHandler
        )

    [code] => -24
    [message] => DB Error: connect failed
    [mode] => 16
    [debug_info] =>  [nativecode=Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)]
    [type] => DB_Error
    [user_info] =>  [nativecode=Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)]
    [to_string] => [db_error: message="DB Error: connect failed" code=-24 mode=callback callback=CRM_Core_Error::simpleHandler prefix="" info=" [nativecode=Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)]"]
)