MyDBDesk

User Guide — Version 2.2.0

MyDBDesk is a desktop application for managing MySQL and MariaDB databases. It lets you connect to your database servers, browse and edit your data, design tables, run SQL, move data in and out, and manage users — all from one window.

It includes a private AI assistant that runs entirely on your own PC and a built-in local MariaDB server, so you can get started even if you don't have a database server yet. Version 2.1 added scheduled exports, saved queries and a visual privilege editor; version 2.2 adds a dark theme, high-contrast and screen-reader support, full keyboard access, and a round of safeguards so your edits and backups never go missing.

This guide walks through everything the app can do. No database experience is required to get started, though some tabs (like SQL and Privileges) are aimed at more advanced users.

1. The main window at a glance

When you open MyDBDesk you'll see three areas:

  • Toolbar (top) — buttons for managing connections, starting a new query, opening ⏱ Scheduled Exports, and (on the right) the Theme picker, 🖴 Local Server and ⓘ About.
  • Navigation tree (left) — your saved servers, and their databases and tables.
  • Work area (right) — a row of tabs that change what you see: Browse, Structure, Designer, SQL, AI, Insert, Export, Import, Operations, Privileges, and Status.
  • Status bar (bottom) — shows what's happening and which server you're using.

When several servers are connected, each tab stays tied to the server its table came from — so a Save, Truncate or Drop always goes to that server, never to another one that happens to hold a table with the same name.

Toolbar buttons turn on and off to match the situation — for example, Connect is only available when you've selected a server you're not yet connected to.

You work by selecting something on the left (a server, database, or table) and then choosing a tab on the right.

2. Connecting to a server

Add a connection

  1. Click + New in the toolbar.
  2. Fill in the connection details:
    • Name — a friendly label, e.g. “Local” or “Production”.
    • Host — the server address (for a database on your own computer this is usually 127.0.0.1).
    • Port — usually 3306.
    • User and Password — your database login.
    • Database (optional) — a database to open automatically.
    • SSL mode — the encryption setting for the connection (see below).
    • CA cert (optional) — a certificate file, only needed for the verified SSL modes.
  3. Click Test Connection to check it works.
  4. Click Save.

Your connection now appears in the navigation tree. Your password is encrypted and stored on your own device.

SSL modes

  • None — no encryption (fine for a database on your own computer).
  • Preferred — encrypt if the server supports it.
  • Required — only connect if the connection can be encrypted.
  • VerifyCA / VerifyFull — also check the server's certificate against the CA certificate file you provide.

Connect, edit, remove

  • Select a server and click 🔌 Connect. Its databases appear underneath it.
  • ✎ Edit changes the selected connection's details.
  • 🗑 Remove deletes the saved connection.
  • ⏏ Disconnect closes the selected server's connection.

You can also right-click in the navigation tree to get the same actions (create, connect, disconnect, edit, remove, refresh) in a menu. Options that don't apply to what you clicked are greyed out.

You can connect to more than one server at once. Whichever item you click in the tree becomes the active one, and the bottom-right of the status bar shows which server you're currently working with.

Set up a local server (no install needed)

Don't have a database server yet? MyDBDesk can run one for you.

  1. Click 🖴 Local Server in the toolbar.
  2. Click ⬇ Download & Start — the app downloads a portable MariaDB (about 100 MB, once) and starts it on your PC, listening only on 127.0.0.1.
  3. A “Local MariaDB” connection is added to the tree and connected automatically — you can start creating databases and tables right away.

From the same window you can Stop the server, change its port or data folder, or open the data folder. Your databases live in a normal folder on your PC (%USERPROFILE%\MyDBDesk\data unless you choose another) and stay there even if you uninstall the app.

Keep the data folder out of OneDrive or other sync tools — syncing a running database can damage it. The Local Server window warns you if the folder is inside OneDrive. Closing MyDBDesk always stops the local server.

3. Browsing data

  1. Expand a server, then a database, to see its tables.
  2. Click a table. The Browse tab shows its rows.

Useful controls:

  • ◀ Prev / Next ▶ move between pages of rows.
  • ⟳ reloads the current page.
  • Filter — type a condition in the WHERE box (e.g. status = 'active') and press Enter or Apply to show only matching rows; Clear removes it.
  • Sort — click a column header to sort by that column (click again to reverse). Filtering and sorting run on the server, so they cover the whole table, not just the page you're looking at.
  • The bar at the bottom shows which rows you're viewing and the total count.
  • While the table loads, a spinner appears. If the table has no rows, the grid shows a “This table has no rows” message.
If you have unsaved edits and change page, sort, filter, refresh, pick another table, disconnect or close the app, MyDBDesk asks whether to save them, discard them, or stay where you are.

4. Editing data

The Browse grid is editable when the table has a primary key (a column that uniquely identifies each row). If it doesn't, the grid is read-only to keep your data safe.

To make changes:

  1. Edit a cell — double-click it and type a new value.
  2. Add a row — type into the empty row at the bottom of the grid.
  3. Delete rows — select one or more rows and click 🗑 Delete row(s).
  4. Click 💾 Save to apply all your changes to the database.
  5. Click ↶ Revert to discard unsaved changes.
Nothing is changed on the server until you press Save. All your changes are saved together, all-or-nothing: if a row you edited or deleted was changed or removed by someone else in the meantime, the whole save is rolled back and you're told why. New rows show their ID as soon as they're saved.

Adding a single row with a form

The Insert tab gives you a form built from the table's columns:

  • Type a value for each field.
  • Tick NULL to store an empty (null) value.
  • Leave a field blank to let the database fill in its default (handy for auto-numbered ID columns).
  • Click + Insert row.

5. Designing tables

Viewing structure

Select a table and open the Structure tab to see:

  • Columns — names, types, whether they allow empty values, defaults, primary key and auto-increment flags.
  • Indexes — including which columns they cover and whether they're unique.
  • Foreign keys — links to other tables.
  • The full table definition at the bottom.

Changing columns and indexes

On the Structure tab:

  • Columns: + Add, ✎ Modify (change a column's type — its default, comment, character set and collation are kept), or 🗑 Drop.
  • Indexes: + Add (choose the column(s) and whether it's unique) or 🗑 Drop.

Creating and removing tables and databases

Open the Operations tab. The available actions depend on what you've selected in the tree:

  • Create database… — make a new, empty database.
  • Create table… — opens a designer where you add as many columns as you like, setting each one's name, type, whether it allows empty values, primary key, auto-increment, and default.
  • Rename / Truncate / Drop table — rename a table, empty it of all rows, or delete it entirely.
  • Drop database — delete a database and everything in it.
Destructive actions always ask you to confirm first.

Visual ER diagram (Designer tab)

The Designer tab shows your database as an entity-relationship diagram — table boxes with their columns, and lines for the foreign-key relationships between them. Select a database (or any table in it) and open Designer.

What you can do:

  • Arrange the layout — drag a table by its coloured header to move it. Your arrangement is saved automatically per database, so it looks the same next time. Use Auto-arrange to reset to a tidy grid, or Save layout to save on demand.
  • Pan and zoom — drag an empty part of the canvas to pan; use the - / + buttons (or hold Ctrl and scroll the mouse wheel) to zoom.
  • Create a table — click + New table… to open the table designer; the new table appears on the canvas.
  • Create a relationship (foreign key) — drag from the small dot on the right of a column onto another table's column. Confirm, and the link is created. Or click ⇄ Add relationship… and type the two columns (for example orders.customer_id and customers.id). (The usual rules apply: the two columns must be compatible and the target must be a key.)
  • Edit a table — double-click a table's header to jump to its columns in the Structure tab.
Using the Designer from the keyboard
  • Tab moves from table to table.
  • The arrow keys move the selected table; hold Shift to move it further.
  • Enter or F2 edits the selected table.
  • Esc cancels a drag that's in progress.

6. Running SQL

The SQL tab is a full editor for writing your own statements.

  • Type your SQL — the editor shows line numbers and colour syntax highlighting.
  • Click ▶ Run or press F5 (it works from anywhere on the SQL tab). If you've selected part of the text, only the selection runs — handy for running one statement out of several.
  • Pick the Database the query runs against from the drop-down in the toolbar.
  • Click ■ Stop to cancel a query that's taking too long.
  • Results appear in the grid; messages and timings appear in the bar below.
  • DELIMITER lines work just as they do in the mysql command-line client, so scripts that create stored procedures, functions, triggers and events run as written.
If a statement would permanently change data — a DROP, TRUNCATE, ALTER TABLE … DROP, or a DELETE/UPDATE with no WHERE — MyDBDesk asks you to confirm before running it, so an accidental “delete everything” doesn't slip through.

Query history

Every statement you run is remembered:

  • Use the history drop-down in the SQL toolbar to pick a recent statement and load it back into the editor.
  • Your history is kept between sessions, so it's still there next time you open the app.

Saved queries

History only keeps the last 50 statements, and it forgets which mattered. For a query you want to keep:

  • Click ★ Save and give it a name. The name is pre-filled from the start of the query, so you can usually just press Enter.
  • Pick it from the Saved drop-down to load it back into the editor.
  • 🗑 deletes the one currently selected there (it asks first).
  • Saving under a name that already exists replaces it, after asking.

Saved queries are kept between sessions and are not tied to a connection, so the same query is there whichever server you open.

You can also click 🗒 New Query in the main toolbar at any time to jump to the SQL tab.

7. The AI assistant

The ✨ AI tab is a built-in assistant that helps you understand your database and write SQL. It runs entirely on your own PC — your questions, your schema, and your data are never sent to any server or cloud service.

First use: download a model

The assistant uses a small AI model that downloads once.

  1. Open the AI tab. If no model is present yet, you'll see a ⬇ Download button showing the model and its size.
  2. (Optional) Use the drop-down to choose a model first:
    • Qwen2.5-Coder 1.5B (recommended) — lighter and faster (~1.8 GB).
    • Phi-4-mini (quality) — larger and a bit slower (~4.7 GB).
  3. Click Download. A progress bar shows how it's going; you can Stop it.

The download is one-time — after that the model loads from your PC.

Using it

  • Chat — type a question in the box at the bottom and press Send (or Enter). Replies stream in as they're written. The assistant knows the tables in the database you've selected, so you can ask things like “what does the orders table store?” or “how would I list customers who placed an order?”.
  • Explain query in editor — explains the SQL currently in the SQL tab, in plain English.
  • Describe this table — pick a table in the tree, then click this for a summary of its columns, keys, and what it appears to store.
  • Stop cancels a reply that's taking too long. Clear empties the chat.

Good to know

It's a helper, not an oracle. The assistant is genuinely good at explaining and describing. When it writes SQL it puts it in a code block; Copy SQL under the reply copies just that code, and Copy copies the whole reply. Nothing is run for you — always review a generated query before running it, especially on important data.

You can ask follow-up questions after Explain query in editor (“now optimize it”) and the assistant still sees the SQL. The chat follows a reply as it streams in, unless you've scrolled up to read something earlier.

The first request after opening the app can take a little longer (around half a minute) while the model loads into memory; after that it's quicker.

8. Exporting data

The Export tab saves a table (or a whole database) to a file.

  1. Select a table (or a whole database) in the tree, then open Export.
  2. Choose a format. Options for that format appear underneath:
    • SQL — statements that can recreate the data. This is the only option when exporting a whole database.
      • Include CREATE TABLE / Include DROP TABLE — write the table's own definition, and whether to drop an existing one first.
      • Wrap in a transaction — surround the rows with START TRANSACTION and COMMIT, so they load faster and a failed insert rolls them all back. (MySQL commits DROP and CREATE TABLE on its own, so table definitions are not undone.)
      • Rows per INSERT — put several rows in each INSERT. Larger batches make a noticeably smaller file that restores faster; 1 writes one statement per row.
      Every SQL dump turns foreign-key checks off while it restores (and back on at the end), so tables that reference each other restore in any order.
    • CSV — a separated file you can open in a spreadsheet. Numbers and dates are written the same way whatever your Windows language settings.
      • Delimiter — comma, semicolon, tab or pipe.
      • Header row — whether to write the column names first.
      • Quote every field — quote everything, not only the fields that need it.
      • Write NULL as — left blank, an empty cell and a NULL look identical; put something like \N here to tell them apart.
    • JSON — structured data for use in other tools.
      • One object per line (JSON Lines) — a format that streams and greps well, instead of one indented array.
  3. Then choose how to export:
    • ⤓ Export — generates the result into the text box on screen so you can read or copy it. Best for smaller tables.
    • ⬇ Export to file… — pick a file and the data is written straight to it, with a progress bar. This is the right choice for large tables: it stays fast, doesn't tie up the rest of the app (you can switch to other tabs while it runs), and you can press Cancel to stop. A failed or cancelled export never leaves a half-written file and never replaces the file you were overwriting.

Scheduled exports

To have an export repeat on its own, click ⏱ Scheduled Exports in the main toolbar.

  • + Add creates a job. Give it a name, pick a saved connection, the database (and a table, or leave it blank to export the whole database as SQL), a folder to write into, the format, and how often to repeat — from every 15 minutes to weekly. A CSV or JSON job needs a table.
  • Keep decides how many files to hold on to; older ones are deleted as new ones arrive, so a schedule can't slowly fill your disk. Set it to 0 to keep everything. A job only ever deletes its own files.
  • Run now runs the selected job immediately, without waiting for it to be due — useful for checking a new job works.
  • Each job shows what happened on its last run, including the file it wrote or why it failed.
  • Untick Enabled to pause a job without deleting it.
These run while MyDBDesk is open. Nothing is registered with Windows, so closing the app pauses the schedule. A job that fell due while the app was closed runs once the next time you start it — not once for every interval that went by.

9. Importing data

The Import tab brings data in. You can run SQL you typed, or run a file.

Run SQL you typed

  • Type or paste SQL into the editor and click ▶ Run editor SQL.

Run a file (.sql or .csv)

  1. Click 📂 Choose file… and pick a .sql or .csv file. (Very large files aren't loaded into the editor — they run straight from disk.)
  2. For a CSV, set the target table in the box that appears. The Delimiter box next to it is set to auto-detect (comma, semicolon, tab or pipe); pick one yourself if the guess is wrong. UTF-8, UTF-16 and ANSI files are all read correctly.
  3. Click ▶ Run from file.
  4. For a CSV, a column-matching window opens — each CSV column is lined up with a table column (matches by name are pre-filled). Adjust any, or set a column to (skip), then click Import. Alongside each row it shows:
    • Sample values — the first few values from your file, so you can see what is actually in that column. An empty field is shown as (empty) and imports as NULL.
    • Target type — what the table column expects, e.g. varchar(50), NOT NULL.
    • Notes — a warning when the sampled values don't look importable: text going into a number column, dates MySQL won't accept (like 11/15/2026), values too big or too long for the column, or empty fields headed for a column that doesn't accept NULL. It also warns when a column the table requires isn't mapped, or when two CSV columns point at the same one.
    The warnings are advisory — only the start of the file is sampled — so you can still choose to import, and you'll be asked to confirm first.

If the file is damaged — for example a quote that's never closed — you get a clear error naming the line, instead of a half-imported table.

A progress bar shows how the import is going; you can keep working in other tabs, or press Cancel. A CSV import is all-or-nothing — if anything goes wrong, the table is left exactly as it was.

10. Managing users and privileges

These tools require an account with administrative rights on the server.

Open the Privileges tab to manage who can access the server.

  • ⟳ Refresh — reload the list of users.
  • Select a user to see their current grants on the right. On MariaDB, roles appear in the same list, marked in the Role column, and can be viewed, edited and dropped the same way.
  • + Create user… — add a new user (name, host, password).
  • 🔑 Edit privileges… — open the privilege editor for the selected user. It opens showing what they already have, with those boxes already ticked:
    • Current grants lists every scope the user holds privileges on — pick one to edit it. To use a scope they don't have yet, type it into Database / Table instead (leave both blank for the whole server).
    • Tick a box to give that privilege, un-tick one to take it away. Applying makes only the changes you made — nothing else is touched.
    • Privileges the editor can't show — ones limited to particular columns, and server-specific administrative privileges — are listed under the boxes and are always left alone.
  • 🗑 Drop user — remove a user.

11. Server status and activity

The Status tab shows what the server is doing. It has three sub-tabs:

  • Status variables — live counters and statistics.
  • Server variables — the server's configuration settings.
  • Process list — connections and queries running right now. Select one and click ✖ Kill selected to end it.

Use the Filter box at the top to quickly find a particular status value or setting by name. Click ⟳ Refresh status to update the figures.

12. Theme, accessibility and keyboard

Light, dark or System

Use the Theme picker on the right of the toolbar:

  • System — follows your Windows light/dark setting, and switches as soon as you change it.
  • Light or Dark — always use that look.

The SQL editor and its syntax colours, the title bars and every dialog follow the theme. When a Windows contrast theme is turned on, MyDBDesk uses its colours instead, whatever you picked.

Screen readers and keyboard

  • Screen readers announce icon buttons and headers in words, and form fields are linked to their labels.
  • The main buttons and dialog fields have Alt access keys — hold Alt to see the underlined letters.
  • The Designer works entirely from the keyboard (see Designing tables).
  • Dialogs fit their content and can be resized, so larger Windows text sizes don't cut off their buttons.

13. Tips and good habits

  • Save often when editing in the Browse grid — changes aren't sent to the server until you press Save.
  • Use Test Connection before saving a new connection to catch typos in the host or password.
  • Confirmations are there to help — read the message before clicking Yes on a Drop or Truncate.
  • Working with several servers? Just click in the tree to switch; the status bar always tells you which server is active.
  • Lost a query? Check the SQL tab's history drop-down — it remembers your recent statements across sessions. For queries you use often, ★ Save them by name.
  • Want regular backups? Set up a ⏱ Scheduled Export with a sensible Keep count — and remember it only runs while MyDBDesk is open.
  • Big export or import? A progress bar covers just that tab — the rest of the app keeps working, and you can press Cancel at any time.
  • A spinner means MyDBDesk is loading something (a table, a query result, or the list of databases).
  • No database server yet? Use 🖴 Local Server to download and run one on your own PC in a couple of clicks.
  • The AI stays on your PC — nothing you ask it, and none of your data, leaves your computer. Even so, review any SQL it writes before you run it.

14. Quick reference

I want to…Go to
Add or connect to a serverToolbar → New / Connect
Set up a database on my own PCToolbar → 🖴 Local Server
Look at a table's rowsSelect the table → Browse
Filter or sort a table's rowsBrowse — WHERE box / click a column header
Change data in placeBrowse → edit → Save
Add one record with a formInsert
See or change a table's columnsStructure
See tables & relationships as a diagramDesigner
Create or delete tables / databasesOperations
Write my own SQLSQL (run with F5)
Run a script that creates procedures or triggersSQL — DELIMITER lines work as in the mysql client
Keep a query I use oftenSQL → ★ Save
Ask the AI, explain a query, describe a tableAI
Save data to a fileExport
Repeat an export automaticallyToolbar → ⏱ Scheduled Exports
Load a SQL or CSV fileImport
Manage users and accessPrivileges
Change what a user is allowed to doPrivileges → 🔑 Edit privileges…
See server activityStatus
Switch between light and darkToolbar → Theme (System, Light, Dark)
Link two tables without the mouseDesigner → ⇄ Add relationship…
Check the app versionToolbar → ⓘ About

About MyDBDesk

Click ⓘ About in the toolbar to see the app logo, the version and build number, and a link to the MyDBDesk website. If you ever need to report a problem, the version and build number are useful to include.