Skip to content

Error: SQLITE_CANTOPEN: unable to open database file #161

Locked Answered by leerob
StefanZivkovic asked this question in Help
Discussion options

You must be logged in to vote

If you're trying to read from your SQLite DB file, you'll need to explicitly include it in your function: https://vercel.com/support/articles/how-can-i-use-files-in-serverless-functions

However, you won't be able to do full CRUD options (just read from the file). Instead, I would recommend checking out a managed MySQL provider: https://vercel.com/integrations/planetscale

Replies: 0 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@StefanZivkovic
Comment options

Answer selected by leerob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants