O'Reilly logo

Understanding MySQL Internals by Sasha Pachev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Source Code Directory Layout

Table 2-3 lists the top-level subdirectories in the MySQL source tree, with a brief explanation of each. Note that some reorganization is possible in the future versions, but most of the structure should be fairly stable.

Table 2-3. Top-level directories in MySQL source tree

Subdirectory

Description

BUILD

Developer build scripts.

Build-tools

Mostly scripts for building binary distributions.

Docs

Documentation.

NEW-RPMS

Used by the distribution build scripts to hold new RPMs.

SSL

Some configuration files from early SSL development.

VC++Files

Used for building MySQL binaries on Windows.

bdb

Berkeley DB storage engine code. Berkeley DB supports transactions and page locks. However, the interface between Berkeley DB and core MySQL is not very well developed, and InnoDB storage engine is a better choice when transactions are needed. Removed in version 5.1.

client

Command-line client utilities code.

cmd-line-utils

External libraries to enhance the command-line client (libedit and readline).

dbug

Debugging library. I personally do not like using it because it alters execution and obscures the timesensitive bugs, but some developers, including Monty, love it for its ability to print out the execution trace. To enable it, add **–with-debug to extra_configs in your build script.

extra

Code for miscellaneous tools.

heap

Code for the in-memory tables. Moved to the storage/ directory in 5.1.

isam

ISAM storage engine code (deprecated by MYISAM, removed in 5.0).

include ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required