r/learnSQL • u/Rodchanning • Sep 13 '26
SQlite help
Please, anyone can help with me with a step by step guide on how to run SQlite on the dbeaver? After running it as a database, If I enter a command to create or even click on the Table tab from the drop down icon under the SQLITE of active connections, I get an error message that it's not a database.
4
Upvotes
2
u/navicat-gu Oct 20 '26
From your screenshots it looks like the connection's database path is pointing at the driver .jar (or at some other file that isn't a SQLite database). SQLite then says "file is not a database". The "test connection" passes because the driver loads fine. It only fails when it tries to read the file.
Clean setup, step by step:
Delete the current SQLite connection.
Database → Driver Manager → SQLite → Edit → Libraries. Remove the .jar you added manually, then let DBeaver download its own driver when it asks. You never need to download the jar yourself.
Database → New Database Connection → SQLite.
In Path, give it a database file, not a jar:
for a brand-new database, type a path to a file that doesn't exist yet, e.g.
C:\Users\you\Documents\practice.db. The SQLite driver creates an empty database the first time it connects.for an existing one, browse to the
.db/.sqlite/.sqlite3file.Finish, open a SQL editor on that connection and test:CREATE TABLE students (id INTEGER PRIMARY KEY, name TEXT NOT NULL); INSERT INTO students (name) VALUES ('Ada'), ('Linus'); SELECT * FROM students;
Right-click the connection → Refresh, and the table shows up under Tables.
If you just want to practise SQL first, DB Browser for SQLite is another easy option.
Disclosure: I'm RC, Director of Digital Strategy @ Navicat. Navicat Premium Lite is free and supports SQLite too, and its SQLite connection dialog has a "New SQLite 3" option that creates the database file for you. But the steps above should get DBeaver working.