00 – 背景知识
- B-Tree & B+Tree
- 折半查找(Binary Search)
- bool sqlcom_can_generate_row_events(const THD *thd)
- return (sql_command_flags[thd->lex->sql_command] &
通过 bzr annoate 来查找引入此代码的revision Read more
MySQL server project not only includes source code for the server binary, but also includes some essential tools for installation, maintenance, access and test. Their source code are packed in different directories depend on their utilities.
* Server Source Code
Server code is divided into SQL and Engine parts.
- SQL Part
This part includes the source code for
@ Setting up the server and providing service to users.
@ Parsing SQL statements and then calling engine API to manipulate the data stored
in different engines. The API is defined by SQL Part and implemented by engines.
@ Other features that is not related to engines, e.g. Replication. Read more
As developers, we often need to check some problems or features with various MySQL options, or check them on a few different versions. So we need to change MySQL’s config file often and run many MySQL servers of different versions at the same machines. That is very boring and inconvenient. Fortunately , we have ‘MySQL Test’ platform which can do the boring job for us and make the work simple.
* Running MySQL Test Cases
MySQL test platform and its test cases are in ‘mysql-test’ directory. Read more
* Normal Build Methods For Users
In this step, I don’t intent to introduce the normal build methods. It is the responsibility of ‘MySQL Reference Manual’. In the reference manual, there are very clear descriptions about the topic in Chapter 2. Installing and Upgrading MySQL.
* Build Scripts For Developers
* Where Is MySQL Source Code
- MySQL Website
Both Binaries and Source Code can be found there.
Launchpad is recommended, as its code is in a bazaar repository. A few fantastic benefits are there.
* Extra Informations In Source Repository Read more