mysql/mysql-server has 7,187,066 source lines of code out of 10,680,705 total lines across 34,708 files, counted with tokei from the trunk ref at commit 06bcb0eb0ad2 on October 31, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-10-31 (commit 06bcb0eb0ad2), mysql/mysql-server contains 10,680,705 total lines: 7,187,066 code, 2,256,479 comments, 1,237,160 blank, across 34,708 files in 66 languages (top language: C++ Header 35.8%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving mysql/mysql-server to commit 06bcb0eb0ad2, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a very large codebase by counted code lines. Code represents 67.3% of all lines, comments represent 21.1%, and the repository averages 207 code lines per file. C++ Header accounts for 35.8% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ Header | 16728 | 3630491 | 2571904 | 589488 | 469099 |
| C++ | 5340 | 3462115 | 2421659 | 633646 | 406810 |
| C Header | 6763 | 1773466 | 959120 | 625889 | 188457 |
| Bitbake | 2219 | 385539 | 295287 | 45749 | 44503 |
| C | 538 | 357327 | 262849 | 52498 | 41980 |
| C# | 204 | 150488 | 122230 | 16933 | 11325 |
| JSON | 79 | 115796 | 115794 | 0 | 2 |
| Java | 547 | 145888 | 94122 | 35953 | 15813 |
| SQL | 206 | 97501 | 87741 | 6465 | 3295 |
| CMake | 575 | 80223 | 54765 | 17569 | 7889 |
| Autoconf | 199 | 50108 | 32554 | 10352 | 7202 |
| Python | 97 | 40089 | 30583 | 4630 | 4876 |
Top language: C++ Header 35.8%. Generated on .
mysql/mysql-server: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
mysql/mysql-server has 7,187,066 lines of code, plus 2,256,479 comment lines and 1,237,160 blank lines, for 10,680,705 total lines at commit 06bcb0eb0ad2 on October 31, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 06bcb0eb0ad2, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from trunk at commit 06bcb0eb0ad2 on October 31, 2026.
Play the growth animation for mysql/mysql-server on this page — 7,187,066 code lines across 66 languages, counted by tokei.