Skip to content
Back to skills

Mysql Knowledge Patch

ASecurity

MySQL

  • 25 stars
  • 0 votes
  • 0 copies
  • 3 views
  • 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/badge)](https://www.skillsdirectory.com/skills/nevaberry-mysql-knowledge-patch)

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, migrating configuration or components,
changing replication, adapting SQL and clients, or using JSON duality views,
stored JavaScript libraries, and component services.
Use the quick reference for compatibility decisions and the topic files for
complete behavior, conditions, defaults, and examples.

## Reference index

| Reference | Topics |
| --- | --- |
| [Compatibility, upgrades, and installation](references/compatibility-upgrades-and-installation.md) | Removed configuration, upgrade checks, spatial indexes, platforms, Windows Configurator, release identity |
| [Security, authentication, and components](references/security-authentication-and-components.md) | Privileges, roles, password storage, connection delays, keyrings, firewall, masking, REST, component APIs |
| [Replication and high availability](references/replication-and-high-availability.md) | Replica defaults, retries, applier privileges, cascades, Group Replication, cloning, XA recovery |
| [Server, InnoDB, and resource sizing](references/server-innodb-and-resource-sizing.md) | Container limits, memory and CPU sizing, Thread Pool, table changes, full-text indexing, redo and purge diagnostics |
| [SQL, schema, and optimizer](references/sql-schema-and-optimizer.md) | Keywords, primary key equivalents, partition exchange, types, collations, windows, optimizer controls, plans and traces |
| [JSON duality views and MLE](references/json-duality-and-mle.md) | Document reads and writes, ETAG annotations, JavaScript types and sessions, stored libraries, WebAssembly |
| [Clients, observability, and audit](references/clients-observability-and-audit.md) | Client commands, dumps, usage counters, telemetry, diagnostics, process lists, audit rotation and recovery |

## Upgrade blockers and removed configuration

- 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. The `version_tokens` plugin, its functions,
  `VERSION_TOKEN_ADMIN`, `version_tokens_session`, and
  `version_tokens_session_number` were deprecated in 9.2 and removed in 9.3.
- Remove `temptable_use_mmap` from 9.4 configurations. For 9.5, remove
  `group_replication_allow_local_lower_version_join` and `replica_parallel_type`;
  replace `semisync_master` and `semisync_slave` with `semisync_source` and
  `semisync_replica`.
- In 9.3, `replica_parallel_workers` has a minimum of `1`; change configurations
  that set it to `0` before upgrading.
- 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 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. In 9.3, `CHECK TABLE places EXTENDED;` also checks spatial-index bounding
  rectangles against clustered records.
- Starting with 9.3, the server blocks downgrades between Innovation releases,
  including patch releases within the same series.
- In 9.7.2, support for Enterprise Linux 7 and the generic glibc 2.17 build ended.

## Deprecations and component migrations

- 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`.
- In 9.2, `INSTALL COMPONENT 'file://component_connection_control';` installs the
  replacement for both deprecated Connection Control plugins. Migrate settings
  to component variables and read counts from
  `performance_schema.connection_control_failed_login_attempts`.
- In 9.3, Enterprise `component_keyring_hashicorp` supplies Vault storage with
  AppRole authentication; the Vault keyring plugin and its variables are deprecated.
  In 9.5, `keyring_okv` is deprecated in favor of `component_keyring_kmip` for
  KMIP 1.1-compatible servers.
- 9.4 deprecates the plugin authoring API and `--early-plugin-load`; loading a
  keyring plugin emits a deprecation warning.
- Convert Enterprise Firewall account profiles to group profiles before upgrading
  to the component added in 9.4, including through Windows Configurator.
- `MD5()` and `SHA1()` are deprecated in 9.4. Starting in 9.6, install
  `classic_hashing` 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 and SQL 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 compact
  dumps containing `TIMESTAMP` data.
- In 9.5, `EXPLAIN` defaults to `TREE`, and `EXPLAIN FORMAT=JSON` defaults to
  version 2. Request `EXPLAIN FORMAT=TRADITIONAL`, or set
  `SET SESSION explain_json_format_version = 1;` before requesting older JSON.
- In 9.7.2, quote `CUBE`, `EXTERNAL`, `QUALIFY`, and `TABLESAMPLE` as identifiers;
  they are reserved. `MANUAL` and `PARALLEL` are nonreserved.
- In 9.5, invalid temporal values sent over the binary protocol raise an error
  even in non-strict SQL modes. In 9.6, negative years in datetime input error.
- `ALTER TABLE ... EXCHANGE PARTITION` enforces destination `CHECK` constraints
  in both directions and rejects mismatched generated-column expressions.
  `WITHOUT VALIDATION` skips partition-bound checks only.
- 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 defaults and failover

- 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;
  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, `replica_allow_higher_version_source=ON` allows a lower-version replica
  to replicate from a higher-version source.
- In 9.7.2, `SOURCE_RETRY_COUNT=0` makes the replication receiver continue retrying
  indefinitely after repeated transient connection losses.
- In 9.2, the inbound channel on a Group Replication primary may commit
  nonconflicting transactions out of order around a `View_change_log_event`, even
  with `replica_preserve_commit_order` enabled, to resolve a deadlock.
- In 9.3, the Enterprise Primary Election component lets failover prefer the most
  up-to-date secondary. Install it alongside the Group Replication plugin on every
  member and set `group_replication_elect_prefers_most_updated.enabled=ON` on each.
  Group Replication Primary Election is also included in Community Edition in 9.7.0.

## Authentication and account management

- In 9.2, `CREATE USER` ignores global `authentication_policy` for callers with
  `AUTHENTICATION_POLICY_ADMIN`. For callers without it, omitted mandatory
  authentication factors come from the global policy.
- In 9.5, `activate_mandatory_roles` defaults to `ON`, activating mandatory roles
  alongside 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 hashes,
  including X Protocol accounts. Administrators can enforce the storage format
  without changing clients.
- In 9.3, `mysqldump --users > accounts.sql` emits `CREATE USER` and `GRANT`.
  Filter with `--include-user` or `--exclude-user`; `--add-drop-user` prepends
  a `DROP USER` for each included account.

## JSON duality views and stored routines

- JSON duality views expose relational rows as documents. In 9.4, reads such as
  `SELECT data FROM jdv1;` include a 128-bit hash at `_metadata.etag`, and Enterprise
  Edition supports `INSERT`, `UPDATE`, and `DELETE`. Community Edition supports
  those writes in 9.7.0, and inserts can use a base table's `AUTO_INCREMENT` key.
- For field annotations, columns inherit table annotations unless overridden.
  `CHECK` is 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.
- Inspect `ALLOW_CHECK` and `ALLOW_UPDATE` in
  `information_schema.JSON_DUALITY_VIEW_COLUMNS`. Upgrade replicas before
  replicating DDL with the new annotations; `mysqldump` wraps it in
  `/*!261000 ... */` comments.
- In 9.3, SQL decimals arrive in JavaScript as strings by default for precision;
  `decimalType` set to `mysql.DecimalType.NUMBER` converts them to numbers.
- In 9.2, reusable JavaScript modules use `CREATE LIBRARY` and `DROP LIBRARY`;
  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, `LANGUAGE WASM` libraries accept compiled bytes encoded as base64 or
  hexadecimal and load through `USING` in JavaScript routines. Keep base64 on a
  single line and keep SQL session and WASI calls outside the module.

## Embedded REST and component sessions

`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.

```sql
INSTALL COMPONENT 'file://component_mysql_rest_service';
SELECT mysql_rest_service_restart();
SHOW GLOBAL STATUS LIKE 'mysql_rest_service.state';
```

For `mysql_command_services`, set write-only `MYSQL_COMMAND_PASSWORD` to a non-null
value, including an empty string, for local Classic Protocol authentication, or
to null for an embedded session. Authenticated connections are local and one-shot
and reject option-file settings. For embedded sessions, setting
`MYSQL_COMMAND_BYPASS_MAX_CONNECTIONS` to `false` before connecting counts the
session against `max_connections` without access to the reserved extra slot;
the default `true` gives administrative admission.

## Optimizer and operational diagnostics

Community Edition can enable the Hypergraph Optimizer in 9.7.0:

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

Run `SHOW WARNINGS;` after `EXPLAIN FORMAT=TREE` for the rewritten query in
Note 1003, including `INSERT` and `REPLACE` with `VALUES`. For supported InnoDB and
NDB base-table accesses, TREE and supported `EXPLAIN ANALYZE` plans show partition
names, and JSON v2 exposes `partitions`: the plan-time candidate read set after
explicit `PARTITION(...)` restrictions and optimizer pruning.

In 9.6, `--container-aware=OFF` disables detection and use of container CPU and
memory limits. In 9.7.0, auto-sizing accounts for cpuset cgroup restrictions.
In 9.5, telemetry logs, metrics, and traces default to off, and their OTLP endpoint
settings start unset. In 9.6, general and slow query logs are available to log
telemetry through `performance_schema.setup_loggers`.

## Exact release identity

```sql
SELECT VERSION_WITH_UPDATE(), @@GLOBAL.version_with_update;
```

This reads `MAJOR.MINOR.PATCH.UPDATE`; an unspecified update is `0`.
`mysql_upgrade_history` records exact update transitions. `VERSION()`, `@@version`,
the Classic handshake, and numeric version IDs use the three-part identity.
Use `mysqld --version-with-update` for the server command-line identity.

Files in this skill

  • SKILL.md8.5 KB
  • coverage.json618 B
  • references/clients-observability-and-audit.md3.2 KB
  • references/compatibility-upgrades-and-installation.md3.5 KB
  • references/json-duality-and-mle.md3.3 KB
  • references/replication-and-high-availability.md2.8 KB
  • references/security-authentication-and-components.md4.2 KB
  • references/server-innodb-and-resource-sizing.md2.4 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.