Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Can't connect to local server through socket '/var/lib/mysql/mysql.sock' (2) in /home/gqakefophosting/public_html/vendor/illuminate/database/Connectors/Connector.php:70
Stack trace:
#0 /home/gqakefophosting/public_html/vendor/illuminate/database/Connectors/Connector.php(70): PDO->__construct()
#1 /home/gqakefophosting/public_html/vendor/illuminate/database/Connectors/Connector.php(46): Illuminate\Database\Connectors\Connector->createPdoConnection()
#2 /home/gqakefophosting/public_html/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection()
#3 /home/gqakefophosting/public_html/vendor/illuminate/database/Connectors/ConnectionFactory.php(184): Illuminate\Database\Connectors\MySqlConnector->connect()
#4 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#5 /home/gqakefophosting/public_html/vendor/illuminate/database/Connection.php(1064): call_user_func()
#6 /home/gqakefophosting/public_html/vendor/illuminate/database/Connection.php(1100): Illuminate\Database\Connection->getPdo()
#7 /home/gqakefophosting/public_html/vendor/illuminate/database/Connection.php(442): Illuminate\Database\Connection->getReadPdo()
#8 /home/gqakefophosting/public_html/vendor/illuminate/database/Connection.php(368): Illuminate\Database\Connection->getPdoForSelect()
#9 /home/gqakefophosting/public_html/vendor/illuminate/database/Connection.php(705): Illuminate\Database\Connection->Illuminate\Database\{closure}()
#10 /home/gqakefophosting/public_html/vendor/illuminate/database/Connection.php(672): Illuminate\Database\Connection->runQueryCallback()
#11 /home/gqakefophosting/public_html/vendor/illuminate/database/Connection.php(376): Illuminate\Database\Connection->run()
#12 /home/gqakefophosting/public_html/vendor/illuminate/database/Query/Builder.php(2414): Illuminate\Database\Connection->select()
#13 /home/gqakefophosting/public_html/vendor/illuminate/database/Query/Builder.php(2402): Illuminate\Database\Query\Builder->runSelect()
#14 /home/gqakefophosting/public_html/vendor/illuminate/database/Query/Builder.php(2936): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
#15 /home/gqakefophosting/public_html/vendor/illuminate/database/Query/Builder.php(2403): Illuminate\Database\Query\Builder->onceWithColumns()
#16 /home/gqakefophosting/public_html/vendor/illuminate/database/Concerns/BuildsQueries.php(294): Illuminate\Database\Query\Builder->get()
#17 /home/gqakefophosting/public_html/application/core/MY_Model.php(300): Illuminate\Database\Query\Builder->first()
#18 /home/gqakefophosting/public_html/application/helpers/database_helper.php(1420): MY_Model->get()
#19 /home/gqakefophosting/public_html/application/controllers/frontend/post.php(52): Model::get()
#20 /home/gqakefophosting/public_html/system/core/CodeIgniter.php(360): Post->detail()
#21 /home/gqakefophosting/public_html/index.php(224): require_once('/home/gqakefoph...')
#22 {main}
Next Illuminate\Database\QueryException: SQLSTATE[HY000] [2002] Can't connect to local server through socket '/var/lib/mysql/mysql.sock' (2) (SQL: select * from `cle_post` where `slug` = 7-cau-hinh-may-tinh-hoan-hao-de-choi-lien-minh-huyen-thoai-tu-van-tu-hoco-store-pc and `cle_post`.`public` = 1 and `cle_post`.`trash` = 0 limit 1) in /home/gqakefophosting/public_html/vendor/illuminate/database/Connection.php:712
Stack trace:
#0 /home/gqakefophosting/public_html/vendor/illuminate/database/Connection.php(672): Illuminate\Database\Connection->runQueryCallback()
#1 /home/gqakefophosting/public_html/vendor/illuminate/database/Connection.php(376): Illuminate\Database\Connection->run()
#2 /home/gqakefophosting/public_html/vendor/illuminate/database/Query/Builder.php(2414): Illuminate\Database\Connection->select()
#3 /home/gqakefophosting/public_html/vendor/illuminate/database/Query/Builder.php(2402): Illuminate\Database\Query\Builder->runSelect()
#4 /home/gqakefophosting/public_html/vendor/illuminate/database/Query/Builder.php(2936): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
#5 /home/gqakefophosting/public_html/vendor/illuminate/database/Query/Builder.php(2403): Illuminate\Database\Query\Builder->onceWithColumns()
#6 /home/gqakefophosting/public_html/vendor/illuminate/database/Concerns/BuildsQueries.php(294): Illuminate\Database\Query\Builder->get()
#7 /home/gqakefophosting/public_html/application/core/MY_Model.php(300): Illuminate\Database\Query\Builder->first()
#8 /home/gqakefophosting/public_html/application/helpers/database_helper.php(1420): MY_Model->get()
#9 /home/gqakefophosting/public_html/application/controllers/frontend/post.php(52): Model::get()
#10 /home/gqakefophosting/public_html/system/core/CodeIgniter.php(360): Post->detail()
#11 /home/gqakefophosting/public_html/index.php(224): require_once('/home/gqakefoph...')
#12 {main}
thrown in /home/gqakefophosting/public_html/vendor/illuminate/database/Connection.php on line 712