12

So if I create a db in Python using the sqlite3 package:

import sqlite3
con = sqlite3.connect('test.db')

I can't open the db using the sqlite command line in bash:

sqlite test.db
Unable to open database "test": file is encrypted or is not a database

I can however connect to a db created with the sqlite command line using sqlite3 in Python.

How can I open the Python created dbs in the sqlite command line?

1

1 Answer 1

21

Install sqlite3 and use sqlite3 test.db in bash.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.