I receive sometimes the following error:
SQLSTATE[HY000] [14] unable to open database file
I open the datebase by using
Very strange, but for me this was caused by not wrapping the new PDO statement in a try/catch block.