# mysql/mysql-server SLOC report

> mysql/mysql-server: 7,187,066 code lines at commit 561753af986c, counted with tokei-14.0.0 on 2026-10-21. Saved result 7afcfe33512d6841759c145ca03a3f7e8b4dbf29de94f093d7934c03dcbf99ac.

mysql/mysql-server has 7,187,066 source lines of code out of 10,680,705 total lines across 34,708 files, counted from the trunk ref at commit 561753af986c by the OctoCounts tokei engine on 2026-10-21. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving mysql/mysql-server to commit 561753af986c, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

## 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 at 2026-10-21T02:40:25.225310358Z. Canonical report: https://octocounts.com/github/mysql/mysql-server/commit/561753af986c3c006c4b6c7caa8359748fb55b22?reportId=7afcfe33512d6841759c145ca03a3f7e8b4dbf29de94f093d7934c03dcbf99ac&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/561753af986c3c006c4b6c7caa8359748fb55b22?reportId=7afcfe33512d6841759c145ca03a3f7e8b4dbf29de94f093d7934c03dcbf99ac&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 10,680,705 total lines, including 7,187,066 code lines, 2,256,479 comment lines, and 1,237,160 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 561753af986c, 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 561753af986c on 2026-10-21T02:40:25.225310358Z.

## Similar repository reports

- [LostRuins/koboldcpp](https://octocounts.com/github/LostRuins/koboldcpp) — C++ Header, 1,278,632 code lines
- [lightvector/KataGo](https://octocounts.com/github/lightvector/KataGo) — C++ Header, 702,153 code lines
- [love2d/love](https://octocounts.com/github/love2d/love) — C++ Header, 684,888 code lines
- [gexgd0419/NaturalVoiceSAPIAdapter](https://octocounts.com/github/gexgd0419/NaturalVoiceSAPIAdapter) — C++ Header, 230,023 code lines
- [juzzlin/DustRacing2D](https://octocounts.com/github/juzzlin/DustRacing2D) — C++ Header, 139,176 code lines
- [vtil-project/VTIL-Core](https://octocounts.com/github/vtil-project/VTIL-Core) — C++ Header, 111,669 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)
- [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)
