Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Problems with attach database #4541

Closed
wlodek opened this issue Nov 6, 2022 · 4 comments
Closed

Problems with attach database #4541

wlodek opened this issue Nov 6, 2022 · 4 comments

Comments

@wlodek
Copy link

wlodek commented Nov 6, 2022

Details

I have been using SQLiteStudio for a long time, but for a few weeks I have had a problem with attaching database. I receive error message "Error while executing SQL query on database 'dbname': file is not a database". But the file is a valid database - I work with it and it works. I tried with other valida database - but the result is always the same.

Steps to reproduce

Connect with the database SQL CIPHER using PRAGMA CIPHER_COMPATIBILITY = 3;
Go to editor, select opened database and try to:
ATTACH DATABASE xxx AS ccc KEY ddd;
where xxx is also SQL CIPHER
I had never problems with this, until now.

Operating system

WIndows 11, Mac OS Ventura (also previous version of Mac OS)

SQLiteStudio version

3.3.3

@pawelsalawa
Copy link
Owner

Are you able to open that problematic (the xxx) database directly? (I mean by adding it to the list in SQLiteStudio and opening it as primary database, not attached)

@wlodek
Copy link
Author

wlodek commented Nov 6, 2022 via email

@wlodek
Copy link
Author

wlodek commented Nov 6, 2022 via email

@pawelsalawa
Copy link
Owner

SQLiteStudio is just using SQLCipher here and if attaching with it is not working, there is not much SQLiteStudio can do about it.

According to official SQLCipher docs (https://www.zetetic.net/sqlcipher/sqlcipher-api/#attach) it's not possible to define compatibility levels when attaching. That may be the root cause of your issue.

You can try to ask SQLCipher support for help on their forums: https://discuss.zetetic.net/c/sqlcipher/5

Repository owner locked and limited conversation to collaborators Nov 6, 2022
@pawelsalawa pawelsalawa converted this issue into discussion #4542 Nov 6, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants