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

BerkeleyDB: problems opening database with dbsql utility #58

Open
jmckenna opened this issue Feb 27, 2013 · 1 comment
Open

BerkeleyDB: problems opening database with dbsql utility #58

jmckenna opened this issue Feb 27, 2013 · 1 comment

Comments

@jmckenna
Copy link
Member

  • using master with "Berkeley DB 11g Release 2, library version 11.2.5.3.21"
  • would like to use dbsql utility to examine the 'tiles' table
  • command: dbsql my-mapcache.db
  • no errors
  • however the next command causes errors: .tables
  Error: file is encrypted or is not a database
  • examining, I find that when dbsql utility is used, it is trying to open another database from that same file (with a name of "my-mapache.db-journal")
  • if I look inside that new -journal folder, there is a "sql-errors.txt" file, that contains:
D:\ms4w\tmp\ms_tmp\cache\my-mapache.db:BDB1014 D:\ms4w\tmp\ms_tmp\cache\my-mapache.db-journal\..\berkeley.db: multiple databases specified but not supported by file

Thoughts?

@aeichner
Copy link

Mapcache uses the traditional BerkeleyDB API where as dbsql is used to interact using the SQL API. See http://www.oracle.com/technetwork/database/berkeleydb/overview/sql-160887.html for more. Using dbsql to examine a BDB cache simply won't work.

jbo-ads added a commit to jbo-ads/mapcache that referenced this issue Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants