Search code examples
phpmysqlredbean

RedBean Php PDOException


I have a client who is getting the error:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'XXX.XXX.XXX.XXX' (4)' in /htdocs/library/rb.php:65

The really odd thing here is that it's not consistent... I can't even reproduce the error. Hitting refresh will, apparently, always bring requested page up without problems.

What could be causing this? Any ideas?


Solution

  • The problem was that the windows server does not have PDO mysql drivers installed.