SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Nandibear.com - A website where books can be tracked as they travel the planet. Just print a passport sticker and affix it to the inside cover of a book!
Login    /    Enter your book's passport no:



Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home2/luke/public_html/index.php:178 Stack trace: #0 /home2/luke/public_html/index.php(178): PDO->__construct('mysql:host=loca...', 'luke_duke', 'dukey', Array) #1 {main} thrown in /home2/luke/public_html/index.php on line 178