Mysql – Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory
I'm connecting to a MariaDB database using PHP PDO library. When running the code on PhpStorm, everything works fine, but when running on LAMPP I get the following exception: 127.0.0.1:45536 [500]: POST /register - Uncaught PDOException: SQLSTATE[HY000] [2002] No such…