vereo
← All programs

SQL Manager

Manage and back up MariaDB — inside the QTS window of the NAS

QNAP QTS 5.0+ (ARM) · Version 1.0.5

Connection, choice of databases, target and retention — below that, what has already been backed up. One timestamped folder per run.
Connection, choice of databases, target and retention — below that, what has already been backed up. One timestamped folder per run.
After every run the log says how large each database was — and which mysqldump it found. Exactly the line that gives away a silent nightly failure.
After every run the log says how large each database was — and which mysqldump it found. Exactly the line that gives away a silent nightly failure.
Create and drop databases without the detour via the command line.
Create and drop databases without the detour via the command line.
The schedule becomes a cron entry on the NAS. There are buttons for the common cases; otherwise you set the time yourself.
The schedule becomes a cron entry on the NAS. There are buttons for the common cases; otherwise you set the time yourself.

On a QNAP NAS, MariaDB runs along as a package — for the photo library, for Nextcloud, for whatever you put there yourself. What is missing is a place where you can see it: QTS brings no interface for your own database, and putting phpMyAdmin beside it means maintaining a second password.

The SQL Manager installs itself as a package in the App Center and opens in the QTS window like any other application.

What it does

  • Backup — all databases or a selection, optionally gzip-compressed, into a freely chosen directory on the NAS
  • Schedule — the run is registered as a cron entry, with a retention period: what is older it clears away itself
  • Databases — create, delete, look at the contents of a dump
  • Users — create, set a password, grant and revoke rights per database
  • Restore — from a backup on the NAS or from an uploaded file
  • Log — what the last run did, and whether it got through

No second password

A tool that can delete databases and is reachable in the browser must not bring its own sign-in — that would be exactly one forgotten password away from damage. Instead the SQL Manager checks the running QTS session: it passes the session token on to the QTS authentication interface and only works if that confirms a signed-in administrator. Whoever signs out of QTS is out here too.

Two things that go wrong in operation

The path to mysqldump does not hold. /usr/local/mariadb sits on the QTS ramdisk and is only a link that the MariaDB package sets at startup. After a reboot, an update or the switch from MariaDB 5 to 10, a path stored once points nowhere — and the nightly backup fails silently. The SQL Manager therefore resolves the path anew on every run and knows MariaDB 5, MariaDB 10 and MySQL.

The web alias disappears. QTS does not create the mount point for the interface itself, and a firmware update clears it away. It is therefore set again at installation, at every start of the package and regularly in the background.

Requirements

  • QNAP NAS with an ARM processor and QTS 5.0 or newer. The package is not built for models with an Intel or AMD processor.
  • An installed MariaDB or MySQL package on the NAS
  • Signed in as an administrator

Installation: the setting first, then the package

The package carries no digital signature — QNAP grants those only to vendors in its own programme. The App Center therefore refuses it as long as you do not allow that:

  1. Open the App Center, top right the gear (settings)
  2. Switch on «Allow installation of applications without a valid digital signature»
  3. Back in the App Center choose Install → Install manually and select the downloaded .qpkg file

After that SQL Manager stands among the other applications and opens with one click.

You can check the file yourself. SHA-256 of SQLManager_1.0.5.qpkg:

f4232c6d2959783ed6f58f88ebc658b6546a331eee0f7d7532d6e8c70cd4d999

What you get

A one-off purchase for use on your NAS — no subscription, no running costs. After payment you receive the package for download; new versions of the 1.x series are included and are available in the customer area.

Help and documentation for SQL Manager →

  • Scheduled backups, retention freely selectable
  • Create, delete and grant rights on databases and users
  • Restore from a backup or from an uploaded file
  • Operated in the QTS window, without a second password
  • Finds mysqldump again by itself after a reboot or update
  • Runs on the NAS, not on a server beside it