Library Shelf: Free Tools for Looking Inside a Database

A database is easier to understand when you can see its tables and try queries by hand. These free tools let you do that. This shelf describes what each one is for, so you can pick one and get started rather than installing them all.

Command-line tools

sqlite3

The official command-line shell for SQLite. Type sqlite3 practice.db to open or create a database file, then type SQL directly. Dot-commands such as .tables and .schema show what is inside.

Best for: quick experiments, scripts, learning without distractions.

psql

The standard command-line client for PostgreSQL, included with PostgreSQL installations. Backslash commands such as \dt (list tables) and \d tablename (describe a table) are very handy.

Best for: anyone using PostgreSQL; it is what most tutorials show.

mysql

The command-line client that comes with MySQL. Commands such as SHOW TABLES; and DESCRIBE tablename; help you look around.

Graphical tools

DB Browser for SQLite

A free, open-source desktop program for opening SQLite files, browsing tables like a spreadsheet and running queries.

Best for: beginners who prefer clicking to typing at first.

pgAdmin

A free administration and query tool for PostgreSQL, developed alongside the PostgreSQL community.

Best for: seeing PostgreSQL databases, tables and permissions in a tree, and running queries with results in a grid.

MySQL Workbench

Oracle's free graphical tool for MySQL, with a query editor and a visual table designer.

DBeaver Community Edition

A free, open-source tool that connects to many databases, including SQLite, PostgreSQL, MySQL and SQL Server, through one interface.

Best for: learners who use more than one database.

Choosing one

If you use...Start with
SQLitesqlite3, or DB Browser for SQLite if you prefer windows
PostgreSQLpsql, then pgAdmin if you want a graphical view
MySQLthe mysql client or MySQL Workbench
Several databasesDBeaver Community Edition

A gentle recommendation

Try the command-line tool for your database at least a little. It is always available, it shows exactly what you typed, and error messages are not hidden behind dialogs. Graphical tools are great for browsing, but typing queries builds understanding faster.

Safety reminders

Our browser helpers

This site also has two small helpers that run in your browser: a connection string helper and a visual query builder. They do not connect to databases; they help you write strings and queries to paste into the tools above.

A free learning page for beginners. Practise on a test database, never on real customer data, and check the official documentation for your database version.

This page is a free outline. No downloadable files, paid content, courses or certificates are offered on this site.