MySQL Advisor - The Configuration Analysis Tool

Variable Reference

tables_without_pk

CRITICAL

Rule IDs: sch_001

Overview

Purpose
Schema-quality signal: tables lacking a primary key, usually from summarized metadata rather than a single global variable.
Dynamic (MySQL 8.4 reference)
Change by altering table definitions (add a primary key).
Default value
N/A
Version and product notes
MySQL 8.4 InnoDB encourages a primary key; behavior differs by engine.
Documentation
Primary reference depends on product (MySQL, MariaDB, Percona, or OS documentation).

What is checked

Rules that reference this variable, with their severity and what each rule detects:

Tuning guidance

Example

ALTER TABLE my_table ADD COLUMN id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY;

Generated from the MySQL Advisor documentation build. Dynamic Yes/No reflects the excerpt aligned with Oracle MySQL 8.4 reference material consumed by this project.