MySQL 9.1.0
Source Code Documentation
SQL Query Execution

SQL Parsing

The parser processes SQL strings and builds a tree representation of them.

See Parser.

SQL Optimizer

Stored Programs

Prepared statements

See mysql_stmt_prepare

Stored procedures

See sp_head, sp_instr.

SQL Functions

See Item_func

Error handling

See my_message, my_error

Transactions