How to prevent SQLITE SQLSTATE[HY000] [14]?

前端 未结 3 1321
孤城傲影
孤城傲影 2020-12-11 10:03

I receive sometimes the following error:

SQLSTATE[HY000] [14] unable to open database file

I open the datebase by using

<
3条回答
  •  臣服心动
    2020-12-11 10:11

    Very strange, but for me this was caused by not wrapping the new PDO statement in a try/catch block.

提交回复
热议问题