Skip to main content

Handy Database Tool: Documentation

Everything you need to install, set up and use Handy Database Tool. If anything here isn't clear, ask us – we'd rather improve the page than leave you guessing.

Requirements

Requirements
Joomla6.0 or later (tested on 6.2); Joomla 5 is not supported
PHP8.3 or later
DatabaseJoomla's connection: MySQL 8.0.13+ / MariaDB 10.4+ or PostgreSQL 12+; Joomla's MySQLi and MySQL (PDO) drivers
Browsera current Chrome, Edge, Firefox or Safari (desktop; tablets and phones work as well)

The installation changes no Joomla core file and no configuration.php, and needs no changes to the components you monitor.

Installation

  1. Buy Handy Database Tool in our shop. The order e-mail has your licence key and a link to My downloads, where you download pkg_handydbtool-1.1.1.zip.
  2. System → Install → Extensions: upload the package.

The package installs the component Handy Database Tool and the plugin System – Handy Database Tool, enables the plugin and creates the history table. No module is needed: the floating icon is added by the plugin.

Right after the installation

  • Super Users see the floating database icon on every administrator page and, after logging in on the website, on every website page. Monitoring is on for all components.
  • Everybody else sees nothing until you grant permissions.
  • The tool is read-only: record editing, record deletion, write SQL and structural SQL are switched off and granted to nobody but Super Users.

First steps

  1. Components → Handy Database Tool → Options: in Monitoring switch Monitor All Components off and choose the components you are working on (or keep all); in Floating Icon choose its position; switch on editing, deleting, write or structural SQL only if you need them.
  2. Permissions tab: give your developers' group what it needs (recommended set-ups). The floating icon needs at least View SQL Monitor and View Captured Queries; the administrator page Components → Handy Database Tool also needs Access Administration Interface.
  3. Open any page of a monitored component, click the icon in the top right corner and then a query.

The floating monitor

A small round blue button with a database symbol, on every website and administrator page while you are logged in with View SQL Monitor and monitoring is on (not in modal windows, never for visitors). A badge shows the number of SQL queries the monitored components ran for the current page; the icon turns orange after a slow query and red after a failed one. Point at it for a summary such as “12 queries captured on this page (140 in total). 1 slow.”

A click opens Recent SQL queries: filters (SQL contains…, component, query type, status, This page only), a summary line, and one row per query with a coloured type badge, the component, tables, time and the start of the SQL, plus Copy SQL and View full query. A click on a row opens the SQL Inspector on that query; the footer has Open SQL Inspector and, for administrators, Options.

Using the SQL Inspector

A large window over the current page (the whole screen on phones); Esc closes it and the page underneath stays as it was. In the administrator the same inspector is shown on the page Components → Handy Database Tool, with a bar that tells which components are monitored.

The six tabs
Query DetailsFilter bar across the top; captured queries on the left; the selected query formatted and highlighted with component, source extension, time, rows, status, application, page, tables (links to the Table Browser) and bound parameters; Copy SQL, Open in SQL Editor.
SQL EditorRun SQL, Format SQL, Clear, Copy SQL, Load selected query, Export CSV. A line tells which statement kinds you may run. Results per statement: status, time, rows or affected rows, a paginated grid (NULL shown as a grey label, empty strings as ""), or the database error. Destructive statements open a red confirmation first.
Database TablesSearch, origin filter (Joomla core, third-party, other), records (≈ = estimate), engine, size, owning extension; Browse and Query Builder per table.
Table BrowserCollapsible table information (columns, indexes, relationships with links); search in all text columns, filters per column (equals, contains, starts / ends with, greater, less, NULL, empty …), sort, page sizes; view, edit and delete per record; Export CSV or Export selected. The record editor shows a Review changes table (original and new values) before saving; if someone else changed the record meanwhile, nothing is overwritten.
Query BuilderTable, template (numbered 1–40 in six groups; unavailable ones are greyed out with the reason), the inputs of the template, Preview SQL, Run Query, Open in SQL Editor, Export CSV.
Query HistoryFilters (SQL, component, source, status, dates), Export CSV, Clear history; per entry Re-run, Load into SQL Editor, Copy SQL.

Records can only be edited or deleted when the table has a primary key or a unique index without NULL columns; key and binary columns cannot be changed.

The Database Tables tab listing the tables with origin, records, engine, size and owning extension
Database Tables

Options

Components → Handy Database Tool → Options. A function is available only when both the option is on and the user has the permission.

Options and their defaults
TabOptionDefault
MonitoringEnable MonitoringYes
Monitor All ComponentsYes
Components to Monitor–
Capture Unattributed QueriesNo
Maximum Queries Retained200 per user
Highlight Slow QueriesYes
Slow Query Threshold100 ms
Capture Failed QueriesYes
Capture Execution TimesYes
Floating IconShow Floating IconYes
Horizontal PositionRight
Vertical PositionTop
Display Query CountYes
Display Error IndicatorYes
Database BrowserDefault Page Size25
Maximum Records per Page100
Enable Record EditingNo
Enable Record DeletionNo
Enable Bulk DeletionNo
Enable CSV ExportYes
Maximum Rows per Export50000
SQL EditorEnable Read-Only SQLYes
Enable Write SQLNo
Enable Structural SQLNo
Allow Multiple Statements (Super Users only can change it)No
Confirm Destructive OperationsYes
HistoryEnable Query HistoryYes
Store Monitored QueriesYes
Store Bound Parameters (may contain personal data)No
Retention Period30 days
Maximum History Entries5000

Read-only SQL means SELECT, SHOW, DESCRIBE, EXPLAIN, WITH … SELECT, VALUES, TABLE; write SQL INSERT, UPDATE, DELETE, REPLACE, MERGE; structural SQL CREATE, ALTER, DROP, TRUNCATE, RENAME and table maintenance.

Permissions

Permissions (Options → Permissions)
PermissionAllowsAlso needs
Access Administration Interfacethe page Components → Handy Database Tool–
Manage Extension Configurationthe Options–
View SQL Monitormonitoring of the user's page requests, the floating iconEnable Monitoring
View Captured Queriesthe popup list, Query Details, Clear Queries–
View Database TablesDatabase Tables, table information, structure templates–
View Table Datarecords in the Table Browser, data templates, CSV of table dataView Database Tables
Execute Read-Only SQLread statements in the SQL Editor, CSV of resultsEnable Read-Only SQL
Execute Write SQLwrite statementsEnable Write SQL
Execute Structural SQLstructural statementsEnable Structural SQL
Edit Table Recordsthe record editorView Table Data, Enable Record Editing
Delete Table Recordsdeleting single recordsView Table Data, Enable Record Deletion
Bulk Delete Table Recordsdeleting several selected recordsDelete Table Records, Enable Bulk Deletion
View Query Historythe Query History, its CSV and Clear historyEnable Query History

Recommended set-ups

Developer, read-only (typical)

View SQL Monitor, View Captured Queries, View Database Tables, View Table Data, Execute Read-Only SQL, View Query History.

Lead developer

Additionally Edit Table Records, Delete Table Records, Execute Write SQL — and switch on the matching options.

Support staff for one component

View SQL Monitor and View Captured Queries; Monitor All Components off and the component selected.

Production sites

Keep the defaults, grant permissions to as few people as possible, keep Store Bound Parameters off, and consider disabling the system plugin while the tool is not needed.

Keyboard

Keyboard shortcuts
KeyWhereAction
Escpopup, inspector, dialogsclose
← → Home Endinspector tabschange tab
Ctrl+Enter (⌘+Enter)SQL Editorrun
TabSQL Editorindent
Entersearch and filter fieldsapply

Your licence key and updates

Your licence key (it starts with HDT1.) gives you one-click updates for the twelve months included with your licence:

  1. Components → Handy Database Tool → Options → License: paste the key and save.
  2. The status shows Update license (green) with licensee, number, domains and Updates until — or License key not accepted (incomplete, key of another product, not for this domain, or ended).

Saving also writes the key into the Download Key of the update site, so System → Update → Extensions installs new versions while your twelve months of updates run; afterwards everything keeps working. Keys work for their domains and subdomains; development hosts (localhost, *.test, *.local …) always. The key is verified offline.

Updating and uninstalling

Updating: use Joomla's update manager, or install a new package from My downloads over the existing one. Options, permissions and the query history are kept; installing an older version over a newer one is refused.

Uninstalling: System → Manage → Extensions, select the package Handy Database Tool, Uninstall. This removes the component, the plugin, the history table, the captured query buffers and the metadata cache; your own tables and data stay as they are.

Files and folders
administrator/components/com_handydbtoolcomponent
components/com_handydbtoolwebsite entry point of the tool's JSON API (no public pages)
media/com_handydbtoolscript and style of the monitor and the inspector
plugins/system/handydbtoolsystem plugin
cache/handydbtoolper-user query buffers and metadata cache (Joomla's Clear Cache may delete it at any time)

Getting Handy Database Tool

A Single Site licence is £49.99; an Agency licence for every site you look after is £199. Both include twelve months of updates, and everything keeps working afterwards. You can try it first in our demo, and if you have a question before you buy, just ask us.