Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not open database file? #19

Open
benallfree opened this issue Jan 17, 2023 · 1 comment
Open

Could not open database file? #19

benallfree opened this issue Jan 17, 2023 · 1 comment

Comments

@benallfree
Copy link

~/Library/Messages/chat.db exists, but $db = new SQLite3($chat_db_path, SQLITE3_OPEN_READONLY); fails with Could not open database file.

I tried in a normal SQLite browser and it couldn't open the file either. Is there a trick to getting OS X to let go of this file so it can be read?

@cfinke
Copy link
Owner

cfinke commented Jan 17, 2023

It's likely due to Full Disk Access not being enabled for Terminal.

See this for instructions on doing so: https://www.tech-otaku.com/mac/manually-granting-applications-full-disk-access-macos-catalina/

Let me know if it works after enabling FDA for Terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants