# mysql/mysql-server SLOC report

> mysql/mysql-server: 7,187,066 code lines at commit 06bcb0eb0ad2, counted with tokei-15.0.0 on 2026-10-31. Saved result 2e40831ad5c5d7181bf3ed45633a1802f9eb10809092a7ec909c0c637f4dc32b.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 16,728 | 3,630,491 | 2,571,904 | 589,488 | 469,099 |
| C++ | 5,340 | 3,462,115 | 2,421,659 | 633,646 | 406,810 |
| C Header | 6,763 | 1,773,466 | 959,120 | 625,889 | 188,457 |
| Bitbake | 2,219 | 385,539 | 295,287 | 45,749 | 44,503 |
| C | 538 | 357,327 | 262,849 | 52,498 | 41,980 |
| C# | 204 | 150,488 | 122,230 | 16,933 | 11,325 |
| JSON | 79 | 115,796 | 115,794 | 0 | 2 |
| Java | 547 | 145,888 | 94,122 | 35,953 | 15,813 |
| SQL | 206 | 97,501 | 87,741 | 6,465 | 3,295 |
| CMake | 575 | 80,223 | 54,765 | 17,569 | 7,889 |
| Autoconf | 199 | 50,108 | 32,554 | 10,352 | 7,202 |
| Python | 97 | 40,089 | 30,583 | 4,630 | 4,876 |
| Shell | 97 | 33,427 | 23,543 | 6,251 | 3,633 |
| Bazel | 117 | 25,101 | 22,113 | 1,094 | 1,894 |
| Perl | 59 | 32,159 | 21,137 | 4,545 | 6,477 |
| M4 | 18 | 26,823 | 19,012 | 5,637 | 2,174 |
| Protocol Buffers | 169 | 24,701 | 13,140 | 8,492 | 3,069 |
| PHP | 125 | 20,286 | 9,865 | 8,438 | 1,983 |
| XML | 62 | 9,087 | 8,218 | 109 | 760 |
| Puppet | 23 | 4,052 | 3,871 | 181 | 0 |
| Visual Studio Project | 6 | 2,492 | 2,443 | 49 | 0 |
| VB6/VBA | 96 | 2,315 | 2,308 | 1 | 6 |
| CSS | 5 | 2,710 | 2,089 | 179 | 442 |
| Alex | 4 | 1,517 | 1,375 | 0 | 142 |
| Happy | 2 | 995 | 849 | 0 | 146 |
| Module-Definition | 8 | 915 | 782 | 101 | 32 |
| Makefile | 7 | 1,147 | 748 | 180 | 219 |
| OCaml | 2 | 1,254 | 713 | 515 | 26 |
| HTML | 5 | 655 | 535 | 96 | 24 |
| Lex | 3 | 838 | 501 | 152 | 185 |
| Automake | 11 | 789 | 499 | 158 | 132 |
| GNU Style Assembly | 1 | 602 | 390 | 122 | 90 |
| Visual Studio Solution | 3 | 386 | 386 | 0 | 0 |
| PowerShell | 6 | 500 | 385 | 58 | 57 |
| SWIG | 1 | 701 | 357 | 234 | 110 |
| AWK | 5 | 411 | 305 | 69 | 37 |
| LLVM | 1 | 307 | 288 | 0 | 19 |
| Ruby | 10 | 370 | 255 | 57 | 58 |
| JavaScript | 1 | 269 | 232 | 22 | 15 |
| Ruby HTML | 1 | 267 | 230 | 0 | 37 |
| Batch | 10 | 357 | 228 | 73 | 56 |
| INI | 13 | 316 | 202 | 60 | 54 |
| AsciiDoc | 2 | 244 | 170 | 0 | 74 |
| MSBuild | 9 | 193 | 157 | 9 | 27 |
| Objective-C | 1 | 212 | 150 | 33 | 29 |
| Kotlin | 11 | 575 | 135 | 381 | 59 |
| Assembly | 1 | 171 | 130 | 33 | 8 |
| Lua | 1 | 164 | 128 | 5 | 31 |
| Emacs Lisp | 1 | 217 | 86 | 85 | 46 |
| Snakemake | 1 | 270 | 81 | 107 | 82 |
| YAML | 7 | 98 | 74 | 14 | 10 |
| TOML | 1 | 139 | 72 | 41 | 26 |
| Vim Script | 1 | 105 | 72 | 21 | 12 |
| ReScript | 36 | 52 | 52 | 0 | 0 |
| Jinja2 | 1 | 40 | 36 | 0 | 4 |
| BASH | 2 | 93 | 23 | 58 | 12 |
| Monkey C | 3 | 75 | 23 | 46 | 6 |
| Meson | 1 | 24 | 20 | 0 | 4 |
| Swift | 1 | 22 | 18 | 2 | 2 |
| Dockerfile | 2 | 44 | 12 | 25 | 7 |
| LD Script | 1 | 13 | 7 | 5 | 1 |
| NuGet Config | 1 | 8 | 7 | 1 | 0 |
| VBScript | 1 | 27 | 4 | 22 | 1 |
| Forge Config | 1 | 2 | 2 | 0 | 0 |
| Markdown | 97 | 20,808 | 0 | 16,372 | 4,436 |
| Plain Text | 159 | 172,329 | 0 | 163,174 | 9,155 |

Top language: C++ Header 35.8%. Generated on October 31, 2026. Canonical report: https://octocounts.com/github/mysql/mysql-server/commit/06bcb0eb0ad281e08dd2b4d81b99ad25491433e7?reportId=2e40831ad5c5d7181bf3ed45633a1802f9eb10809092a7ec909c0c637f4dc32b&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/mysql/mysql-server/commit/06bcb0eb0ad281e08dd2b4d81b99ad25491433e7?reportId=2e40831ad5c5d7181bf3ed45633a1802f9eb10809092a7ec909c0c637f4dc32b&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does mysql/mysql-server have?

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.

### How was the mysql/mysql-server line count measured?

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.

### What commit was counted for mysql/mysql-server?

This OctoCounts report was generated from trunk at commit 06bcb0eb0ad2 on October 31, 2026.

## Similar repository reports

- [lightvector/KataGo](https://octocounts.com/github/lightvector/KataGo) — C++ Header, 702,153 code lines
- [love2d/love](https://octocounts.com/github/love2d/love) — C++ Header, 685,087 code lines
- [kokkos/kokkos](https://octocounts.com/github/kokkos/kokkos) — C++ Header, 247,273 code lines
- [gexgd0419/NaturalVoiceSAPIAdapter](https://octocounts.com/github/gexgd0419/NaturalVoiceSAPIAdapter) — C++ Header, 230,200 code lines
- [stack-of-tasks/pinocchio](https://octocounts.com/github/stack-of-tasks/pinocchio) — C++ Header, 198,409 code lines
- [storytold/font-preview-service](https://octocounts.com/github/storytold/font-preview-service) — C++ Header, 151,205 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [MySQL vs PostgreSQL](https://octocounts.com/compare/mysql-vs-postgres)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
