The panel
Everything waw-sql knows about your database, in game. Open it with /sqlmenu.
Opening it
Type /sqlmenu in game. The command can be changed in shared/config.lua. Only people allowed by a permission rule can open it; see Who may do what.
The Back up now button at the top of the panel takes a full backup after you confirm, and players can keep playing meanwhile. Next to it you see how long ago the last backup was taken. It is shown to those allowed to take backups.
The panel is available in English, Turkish, German, French, Spanish, Portuguese, Italian and Russian. Each admin picks their own language.
What is where
The panel has five groups. A group with more than one page shows them in a bar under the group names.
| group | pages | what you find there |
|---|---|---|
| Status | a summary of how the database is doing, live queries per second, average time, slow queries, errors and pool usage, with the last 10 minutes as charts (one bar per minute); plus History for the last 24 hours, 7 days or 30 days | |
| Scripts | Resources, Queries | every script that used the database (queries, total and average time, slow queries, errors) and the last 3000 queries with their SQL. Clicking a script opens its queries; queries made while the server was starting are listed separately |
| Problems | Errors, Smart alerts, Suggestions | failed queries with the database's own message and an error history, scripts that use the database badly, and the optimizer's suggestions. The number on the group is new errors plus open smart alerts |
| Players | Player data, Audit log | every row a player has, table by table; correct a value, export or wipe. Plus every change to the tables you choose, and rolling a player back. The number on the group is the open suspicious increases |
| Maintenance | Backups, Cleanup, Settings | backups and automatic backups, rules that delete old rows every night, the Discord log, the slow query threshold, slowing down runaway scripts and how long history is kept |
The Status page
The Status page opens with a summary. Its first line says Everything looks fine, or Needs a look with what needs it: errors, slow queries, smart alerts, suspicious increases, or a last backup that is more than a day old or missing. Click one to open its page. Below it:
- Busiest scripts: the five scripts that sent the most queries since the server started
- Slowest queries: the five query patterns that took the longest, and the script each came from
- Database and backup: how large the database is, its largest table, and when it was last backed up
- Latest events: errors, slow queries and backups, newest first
Errors
Problems → Errors lists failed queries since the server started (the last 500), with the message from MariaDB itself. Above the list:
- Last 24 hours: how many queries ran and how many failed, the time since the last error, the scripts that used the database, and the slow queries
- Error history: failed queries per hour or per day over 24 hours, 7 days or 30 days. It is kept on disk, so it stays after a restart while the list starts again. Click a red cell to see which scripts failed in it
- Scripts with the most errors over the last 30 days
Simple and advanced view
The panel opens in the simple view. The ADVANCED button at the top right adds what only a developer needs:
- query patterns (queries grouped by shape)
- a query's parameters and its MariaDB execution plan (EXPLAIN)
- the type and minimum-time filters
- the table list with columns and indexes
- the queries running right now
- the schema version of every script that uses
MySQL.migrate
The choice is remembered.
Nothing in the panel writes to disk or changes the database unless you press a button. Every change is written to the server console with the admin's name.
History
The panel remembers what happened after a restart. Under Status → History you can look at the last 24 hours, 7 days or 30 days:
- queries, average time, errors and slow queries per hour or per day, each compared with the equal period before it
- every resource with its average time and how much it changed, so a script that got slower after an update stands out
- the query patterns that cost the most time
- how much each table grew
Click a bar to see what ran in that hour, day or minute: which scripts used the database and which queries cost the most. Click a script, a query pattern or a table to see it alone over the chosen range.
One summary per hour is stored in waw-sql-data/history, one small file per day, written once a minute. Table sizes are recorded once a day. Files older than 90 days are deleted; change that under Maintenance → Settings → Keep history (days).
Safe by design
The panel loads nothing from the internet: its font ships with the resource, and the page may only run its own files and talk to waw-sql.
Every time the panel opens, the server and the game together give it a new random key, and anything sent to waw-sql without that key is ignored. So another script's page, or a web page shown in game, cannot act with the permissions of an admin who has the panel open. The server checks every action against the admin's permissions as well.
