# mysql/mysql-server SLOC report

> As of 2026-09-28 (commit 3b99be40f8a3), mysql/mysql-server contains 10,442,473 total lines: 7,021,653 code, 2,219,248 comments, 1,201,572 blank, across 33,702 files in 66 languages (top: C++ Header 34.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

mysql/mysql-server has 7,021,653 source lines of code out of 10,442,473 total lines across 33,702 files, counted from the trunk ref at commit 3b99be40f8a3 by the OctoCounts tokei engine on 2026-09-28. 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 3b99be40f8a3, 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.2% of all lines, comments represent 21.3%, and the repository averages 208 code lines per file. C++ Header accounts for 34.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ Header | 15,944 | 3,437,479 | 2,435,259 | 563,346 | 438,874 |
| C++ | 5,242 | 3,429,370 | 2,399,638 | 626,586 | 403,146 |
| C Header | 6,662 | 1,763,530 | 954,319 | 622,086 | 187,125 |
| Bitbake | 2,198 | 384,294 | 294,320 | 45,611 | 44,363 |
| 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 | 574 | 79,189 | 53,945 | 17,543 | 7,701 |
| Autoconf | 198 | 49,962 | 32,428 | 10,348 | 7,186 |
| Python | 97 | 40,089 | 30,583 | 4,630 | 4,876 |

Top language (C++ Header 34.7%). Generated at 2026-09-28T16:43:14.333129525+00:00. Canonical report: https://octocounts.com/github/mysql/mysql-server

## Reproduce this report

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

## Report FAQ

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

mysql/mysql-server has 10,442,473 total lines, including 7,021,653 code lines, 2,219,248 comment lines, and 1,201,572 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 3b99be40f8a3, 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 3b99be40f8a3 on 2026-09-28T16:43:14.333129525+00:00.

## Similar repository reports

- [LostRuins/koboldcpp](https://octocounts.com/github/LostRuins/koboldcpp) — C++ Header, 1,169,474 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)
