Unhandled Exception

Message:

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

Location:

/var/www/html/prodatacon-pdcsites/laravel/database/connectors/mysql.php on line 33

Stack Trace:

#0 /var/www/html/prodatacon-pdcsites/laravel/database/connectors/mysql.php(33): PDO->__construct('mysql:host=loca...', 'root', 'vpozFfwgoQpn99z...', Array)
#1 /var/www/html/prodatacon-pdcsites/laravel/database.php(66): Laravel\Database\Connectors\MySQL->connect(Array)
#2 /var/www/html/prodatacon-pdcsites/laravel/database.php(52): Laravel\Database::connect(Array)
#3 /var/www/html/prodatacon-pdcsites/laravel/database/eloquent/query.php(255): Laravel\Database::connection(NULL)
#4 /var/www/html/prodatacon-pdcsites/laravel/database/eloquent/query.php(245): Laravel\Database\Eloquent\Query->connection()
#5 /var/www/html/prodatacon-pdcsites/laravel/database/eloquent/query.php(50): Laravel\Database\Eloquent\Query->table()
#6 /var/www/html/prodatacon-pdcsites/laravel/database/eloquent/model.php(472): Laravel\Database\Eloquent\Query->__construct(Object(User))
#7 /var/www/html/prodatacon-pdcsites/laravel/database/eloquent/model.php(247): Laravel\Database\Eloquent\Model->query()
#8 /var/www/html/prodatacon-pdcsites/application/controllers/user.php(9): Laravel\Database\Eloquent\Model::all()
#9 [internal function]: User_Controller->get_login()
#10 /var/www/html/prodatacon-pdcsites/laravel/routing/controller.php(325): call_user_func_array(Array, Array)
#11 /var/www/html/prodatacon-pdcsites/laravel/routing/controller.php(285): Laravel\Routing\Controller->response('login', Array)
#12 /var/www/html/prodatacon-pdcsites/laravel/routing/controller.php(165): Laravel\Routing\Controller->execute('login', Array)
#13 /var/www/html/prodatacon-pdcsites/laravel/routing/route.php(153): Laravel\Routing\Controller::call('user@login', Array)
#14 /var/www/html/prodatacon-pdcsites/laravel/routing/route.php(124): Laravel\Routing\Route->response()
#15 /var/www/html/prodatacon-pdcsites/laravel/laravel.php(165): Laravel\Routing\Route->call()
#16 /var/www/html/prodatacon-pdcsites/public/index.php(34): require('/var/www/html/p...')
#17 {main}