I\'m getting the following error in PHP:
Fatal error: Uncaught exception \'PDOException\' with message \'SQLSTATE[HY000] [2003] Can\'t connect to MySQL serve
The only thing I can think of is if you're inside a namespaced class, and should use \PDOException instead of PDOException.
\PDOException
PDOException