Database Error

Description: Can't connect to localhost as usedecus
MySQL Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

Array
(
    [0] => Array
        (
            [file] => /home/usedecus/public_html/cms/library/func.database.php
            [line] => 47
            [function] => db_error
            [args] => Array
                (
                    [0] => Can't connect to localhost as usedecus
                )

        )

    [1] => Array
        (
            [file] => /home/usedecus/public_html/cms/config.php
            [line] => 70
            [function] => db_connect
            [args] => Array
                (
                    [0] => localhost
                    [1] => usedecus_com
                    [2] => usedecus
                    [3] => jvgRdFd9qR
                )

        )

    [2] => Array
        (
            [file] => /home/usedecus/public_html/cms/index.php
            [line] => 15
            [args] => Array
                (
                    [0] => /home/usedecus/public_html/cms/config.php
                )

            [function] => require
        )

)

Database Error

Description: Can't select database
MySQL Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

Array
(
    [0] => Array
        (
            [file] => /home/usedecus/public_html/cms/library/func.database.php
            [line] => 50
            [function] => db_error
            [args] => Array
                (
                    [0] => Can't select database 
                )

        )

    [1] => Array
        (
            [file] => /home/usedecus/public_html/cms/config.php
            [line] => 70
            [function] => db_connect
            [args] => Array
                (
                    [0] => localhost
                    [1] => usedecus_com
                    [2] => usedecus
                    [3] => jvgRdFd9qR
                )

        )

    [2] => Array
        (
            [file] => /home/usedecus/public_html/cms/index.php
            [line] => 15
            [args] => Array
                (
                    [0] => /home/usedecus/public_html/cms/config.php
                )

            [function] => require
        )

)