Váratlan hiba lépett fel


mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /www/dev/vitafit.inweb.hu/libraries/DB.php on line 15
    public static function connect() {
        $dbSettings = self::$root_db;

        $connLink = mysql_connect($dbSettings['host'], $dbSettings['user'], $dbSettings['password'])
                    or Handlers::fatalerrorHandler('Nem tudok csatlakozni: ' . mysql_error());

PHP: 5.6.40-1~dotdeb+7.1, OS: Linux