PDOException Object
(
    [message:protected] => SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    [string:Exception:private] => 
    [code:protected] => 2002
    [file:protected] => /var/www/website/bsce/www.egec.com.tw/includes/sql.php
    [line:protected] => 11
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/website/bsce/www.egec.com.tw/includes/sql.php
                    [line] => 11
                    [function] => __construct
                    [class] => PDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => mysql:host=localhost;port=3306;dbname=bsce_egec
                            [1] => bsce_egec
                            [2] => Du5Ix3nEI7HHcSMs
                        )

                )

            [1] => Array
                (
                    [file] => /var/www/website/bsce/www.egec.com.tw/config.inc.php
                    [line] => 31
                    [function] => sql_db
                    [class] => SQL_DB
                    [type] => ->
                    [args] => Array
                        (
                            [0] => localhost
                            [1] => bsce_egec
                            [2] => bsce_egec
                            [3] => Du5Ix3nEI7HHcSMs
                        )

                )

            [2] => Array
                (
                    [file] => /var/www/website/bsce/www.egec.com.tw/index.php
                    [line] => 3
                    [args] => Array
                        (
                            [0] => /var/www/website/bsce/www.egec.com.tw/config.inc.php
                        )

                    [function] => require_once
                )

        )

    [previous:Exception:private] => 
    [errorInfo] => 
)