Skip to content
Back to skills

Mysql Knowledge Patch

ASecurity

MySQL

  • 25 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
developmentjavascriptjavasqlexpressapisecurityperformance

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill mysql-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mysql Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mysql Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-mysql-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-mysql-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mysql-knowledge-patch
description: MySQL
version: "26.10.0.1"
license: MIT
metadata:
  author: Nevaberry
---


# MySQL compatibility guidance

Load this skill when upgrading MySQL or working on authentication, replication,
SQL compatibility, JSON duality views, stored JavaScript, components, or diagnostics.
Use the quick reference for common changes and the topic files for full guidance.

## Reference index

| Reference | Topics |
| --- | --- |
| [Compatibility, upgrades, and installation](references/compatibility-upgrades-and-installation.md) | Upgrade checks, removed settings, spatial indexes, release identity, platform support, Windows Configurator |
| [Security, authentication, and components](references/security-authentication-and-components.md) | Privileges, password storage, roles, keyrings, Firewall, masking, REST, component APIs |
| [Replication and high availability](references/replication-and-high-availability.md) | TLS, GTIDs, retries, source compatibility, cloning, foreign keys, Group Replication, XA visibility |
| [Server, InnoDB, and resource sizing](references/server-innodb-and-resource-sizing.md) | Container limits, memory, CPU sizing, Thread Pool, InnoDB defaults, DDL and log diagnostics |
| [SQL, schema, and optimizer](references/sql-schema-and-optimizer.md) | Identifiers, constraints, expression types, windows, Hypergraph Optimizer, EXPLAIN and optimizer trace |
| [JSON duality views and MLE](references/json-duality-and-mle.md) | Document reads and writes, ETAG annotations, JavaScript types and APIs, stored libraries, WebAssembly |
| [Clients, observability, and audit](references/clients-observability-and-audit.md) | Client commands, dumps, telemetry, usage tracking, Health Monitor, account locks, audit recovery |

## Upgrade barriers and removed settings

Starting with 9.3, the server blocks downgrades between Innovation releases,
including patch releases within the same series.

In 9.3, upgrades check whether tables using constraints, default expressions,
partitioning expressions, or virtual columns can still open. The default
`--check-table-functions=ABORT` logs failures and stops the upgrade so you can repair
them on the old version. `--check-table-functions=WARN` logs failures and continues.

When upgrading to 9.2, drop spatial indexes before upgrading and recreate them
afterward, or rebuild them immediately after upgrading before using affected tables.

For 9.3, remove `innodb_undo_tablespaces`, `innodb_log_file_size`, and
`innodb_log_files_in_group` from server configs and `--restore-privilege-tables`
from `ndb_restore` invocations. `replica_parallel_workers` has a minimum of `1`;
change configurations that set it to `0` before upgrading.

Remove `temptable_use_mmap` from 9.4 configurations. For 9.5, remove
`group_replication_allow_local_lower_version_join` and `replica_parallel_type`,
and replace `semisync_master` and `semisync_slave` with `semisync_source` and
`semisync_replica`.

In 9.7.2, support for Enterprise Linux 7 and the associated generic glibc 2.17
build has ended.

## Component migrations and deprecations

In 9.2, install the replacement for both deprecated Connection Control plugins:

```sql
INSTALL COMPONENT 'file://component_connection_control';
```

Migrate their settings to component variables and query
`performance_schema.connection_control_failed_login_attempts` for counts previously
exposed in Information Schema.

In 9.2, `CREATE_SPATIAL_REFERENCE_SYSTEM` authorizes `CREATE`, `CREATE OR REPLACE`,
and `DROP SPATIAL REFERENCE SYSTEM`. Migrate away from deprecated use of `SUPER`
for these statements:

```sql
GRANT CREATE_SPATIAL_REFERENCE_SYSTEM ON *.* TO 'operator'@'localhost';
```

In 9.2, `FLUSH PRIVILEGES`, use or grant of `FLUSH_PRIVILEGES`,
`mysqladmin flush-privileges`, and `mysqladmin reload` emit deprecation warnings.
The deprecation also covers privilege reloads via `SIGHUP` and `mysqladmin refresh`
and clearing the caching SHA-2 cache via `FLUSH PRIVILEGES`.

9.4 deprecates the plugin authoring API and `--early-plugin-load`.
Convert Enterprise Firewall account profiles to group profiles before upgrading
to the replacement component, including upgrades through Windows Configurator.

`MD5()` and `SHA1()` are deprecated in 9.4. Starting in 9.6, install the
`classic_hashing` component to keep using them.

In 9.7.2, `group_replication_communication_stack` and
`group_replication_ip_allowlist` are deprecated and scheduled for later removal.

## Client, SQL, and plan compatibility

9.4 turns off most `mysql` client commands by default. Launch scripts that need
them with `mysql --commands=ON`.

In 9.2, `mysqldump` has `--column-statistics` off by default, and `--compact`
turns off `--tz-utc`. Account for the session time zone when restoring `TIMESTAMP`
data from a compact dump.

In 9.5, `EXPLAIN` defaults to `TREE` and `EXPLAIN FORMAT=JSON` defaults to version 2.
Consumers of older formats can request `EXPLAIN FORMAT=TRADITIONAL` or set
`SET SESSION explain_json_format_version = 1;` before requesting JSON.

In 9.7.2, `CUBE`, `EXTERNAL`, `QUALIFY`, and `TABLESAMPLE` are reserved keywords;
quote them when using them as identifiers. `MANUAL` and `PARALLEL` are nonreserved.

Use complete optimizer flag values, such as
`SET SESSION optimizer_trace = 'enabled=on';`. Abbreviations such as `o` or `of`
raise `ER_WRONG_VALUE_FOR_VAR` for `optimizer_trace` and `optimizer_switch`, leaving
the previous setting in effect.

## Replication and account defaults

In 9.5, replication defaults to `SOURCE_SSL=1`,
`group_replication_ssl_mode=REQUIRED`, and `group_replication_recovery_use_ssl=ON`.
`gtid_mode` defaults to `ON`, which requires `enforce_gtid_consistency=ON`.

In 9.6, the SQL layer handles foreign-key checks and cascades by default, so
cascade changes appear in the binary log and are replicated. Start with
`--innodb-native-foreign-keys=ON` to keep InnoDB handling them.

In 9.7.0, set `replica_allow_higher_version_source=ON` to allow a lower-version
replica to replicate from a higher-version source. In 9.7.2, `SOURCE_RETRY_COUNT=0`
keeps the receiver retrying indefinitely after repeated transient connection losses.

9.5 defaults `activate_mandatory_roles` to `ON`, activating mandatory roles
alongside the account's default roles at login. `activate_all_roles_on_login=ON`
takes precedence and activates all granted and mandatory roles.

In 9.7.0, `caching_sha2_password` supports PBKDF2 with SHA-512 for stored password
hashes, including accounts connecting over X Protocol. Administrators can enforce
the storage format without changing clients.

## JSON duality views and schema operations

9.4 exposes relational rows as documents through `CREATE JSON DUALITY VIEW`,
`ALTER JSON DUALITY VIEW`, `SHOW CREATE VIEW`, and `DROP VIEW`. A read such as
`SELECT data FROM jdv1;` includes a 128-bit hash at `_metadata.etag`.
Enterprise Edition supports view writes in 9.4; Community Edition supports
`INSERT`, `UPDATE`, and `DELETE` on JSON duality views in 9.7.0.

In 9.7.0, inserts through a JSON duality view can use a base table's
`AUTO_INCREMENT` column to generate primary key values.

Columns inherit table annotations unless overridden, with `CHECK` the table
default. Effective `CHECK` fields are required by DML and included in the ETAG.
Column-level `UPDATE` and `NO UPDATE` control field writes; `UPDATE` is rejected
for primary keys. Upgrade replicas before replicating DDL with the new annotations.

`ALTER TABLE ... EXCHANGE PARTITION` enforces destination `CHECK` constraints in
both directions and rejects mismatched generated-column expressions.
`WITHOUT VALIDATION` skips partition-bound checks only.

In 9.7.0, a `UNIQUE` key whose columns are all `NOT NULL` counts as a primary key
equivalent for `CREATE TABLE` and `ALTER TABLE`. It satisfies
`sql_require_primary_key=ON` at creation and suppresses generated invisible
primary keys when `sql_generate_invisible_primary_key=ON`.

## Optimizer and plan inspection

In 9.7.0, Community Edition can enable the Hypergraph Optimizer:

```sql
SET SESSION optimizer_switch = 'hypergraph_optimizer=on';
```

In 9.7.2, affected `ORDER BY` expressions calling side-effecting stored functions
or nondeterministic functions such as `RAND()` are evaluated once per row before
sorting by the Hypergraph Optimizer. This applies to queries optimized for the
primary engine, except top-level `UPDATE` and `DELETE`.

For supported InnoDB and NDB base-table accesses, TREE and supported
`EXPLAIN ANALYZE` plans show partition names in operation text; JSON v2 exposes a
`partitions` array. The list is the plan-time candidate read set after explicit
`PARTITION(...)` restrictions and optimizer pruning.

Run `SHOW WARNINGS;` after `EXPLAIN FORMAT=TREE` to see the rewritten query in
Note 1003, including for `INSERT` and `REPLACE` with `VALUES`.

## Stored JavaScript and libraries

In 9.3, JavaScript stored routines support `DECIMAL` and `NUMERIC` for inputs,
outputs, prepared-statement binds, and return values. SQL decimals arrive as
JavaScript strings by default for precision; `decimalType` set to
`mysql.DecimalType.NUMBER` converts them to numbers.

In 9.2, `CREATE LIBRARY` and `DROP LIBRARY` manage reusable modules, and JavaScript
routines declare dependencies and aliases with `USING`. In 9.3, a routine can load
a library at runtime with `await import('/db1/lib_report')`.

In 9.4, create a `LANGUAGE WASM` library from compiled bytes encoded as base64 or
hexadecimal and load it with `USING` in a JavaScript routine. Keep base64 on a
single line and keep SQL session and WASI calls outside the module.

## REST, release identity, and observability

`component_mysql_rest_service` serves HTTPS from MySQL Server. Its start, stop,
and restart UDFs require `MYSQL_REST_SERVICE_ADMIN`; start and restart run
asynchronously. `mysql_rest_service.state` reports `READY` when the listener is up
or `WAITING_FOR_METADATA` while startup retries missing metadata.

Read `MAJOR.MINOR.PATCH.UPDATE` with
`SELECT VERSION_WITH_UPDATE(), @@GLOBAL.version_with_update;` or
`mysqld --version-with-update`. An unspecified update is `0`; `VERSION()`,
`@@version`, the Classic handshake, and numeric version IDs use three-part identity.

In 9.5, `telemetry.log_enabled`, `telemetry.metrics_enabled`, and
`telemetry.trace_enabled` default to off, and
`telemetry.otel_exporter_otlp_{logs,metrics,traces}_endpoint` settings start unset.
In 9.6, general and slow query logs are available to log telemetry through
`performance_schema.setup_loggers`.

Set `audit_log.rotate_on_time` for Audit Log component rotation based on elapsed
time. Audit filter recovery modes can log all events, log nothing, or abort startup
when a stored filter is invalid; see the audit reference for exact settings.

Files in this skill

  • SKILL.md8.6 KB
  • coverage.json617 B
  • references/clients-observability-and-audit.md3.1 KB
  • references/compatibility-upgrades-and-installation.md3.3 KB
  • references/json-duality-and-mle.md3 KB
  • references/replication-and-high-availability.md2.4 KB
  • references/security-authentication-and-components.md4 KB
  • references/server-innodb-and-resource-sizing.md2.2 KB
  • references/sql-schema-and-optimizer.md3.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.