Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)' in /var/www/xcode/data/www/xn--b1agnqwv0c.xn--p1ai/components/Db.php:8 Stack trace: #0 /var/www/xcode/data/www/xn--b1agnqwv0c.xn--p1ai/components/Db.php(8): PDO->__construct('mysql:host=loca...', 'shop', '3W6m8U0c') #1 /var/www/xcode/data/www/xn--b1agnqwv0c.xn--p1ai/models/Product.php(37): Db::getConnection() #2 /var/www/xcode/data/www/xn--b1agnqwv0c.xn--p1ai/controllers/ProductController.php(4): Product::getProductById('1') #3 [internal function]: ProductController->actionView('1') #4 /var/www/xcode/data/www/xn--b1agnqwv0c.xn--p1ai/components/Router.php(39): call_user_func_array(Array, Array) #5 /var/www/xcode/data/www/xn--b1agnqwv0c.xn--p1ai/index.php(17): Router->run() #6 {main} thrown in /var/www/xcode/data/www/xn--b1agnqwv0c.xn--p1ai/components/Db.php on line 8