# mysql/mysql-server SLOC report

> mysql/mysql-server: 7,194,606 code lines at commit 4573da3722ad, counted with tokei-15.0.0 on 2026-11-24. Saved result b5946d1aab9f5aa2629f54a85a5d924b54ff41f035e3f1e3f269f1fb5c830e6b.

Source: [mysql/mysql-server on GitHub](https://github.com/mysql/mysql-server) · counted commit [4573da3722ad](https://github.com/mysql/mysql-server/tree/4573da3722ad8cb3395b032b06f990226dd2db4d)

mysql/mysql-server has 7,194,606 source lines of code out of 10,686,037 total lines across 34,737 files, counted with tokei from the trunk ref at commit 4573da3722ad on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving mysql/mysql-server to commit 4573da3722ad, 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.7% 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,227 | 2,421,767 | 633,647 | 406,813 |
| C Header | 6,775 | 1,774,023 | 959,643 | 626,080 | 188,300 |
| Bitbake | 2,219 | 385,576 | 295,321 | 45,750 | 44,505 |
| C | 553 | 360,074 | 267,984 | 51,104 | 40,986 |
| 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,163 | 55,183 | 17,315 | 7,665 |
| Autoconf | 197 | 51,226 | 33,256 | 10,505 | 7,465 |
| Python | 97 | 40,089 | 30,583 | 4,630 | 4,876 |
| Shell | 98 | 33,627 | 23,655 | 6,310 | 3,662 |
| Bazel | 117 | 25,101 | 22,113 | 1,094 | 1,894 |
| Perl | 61 | 32,737 | 21,625 | 4,578 | 6,534 |
| M4 | 18 | 26,736 | 19,024 | 5,531 | 2,181 |
| 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 | 919 | 786 | 101 | 32 |
| Makefile | 7 | 1,147 | 748 | 180 | 219 |
| OCaml | 2 | 1,254 | 713 | 515 | 26 |
| HTML | 5 | 655 | 535 | 96 | 24 |
| Automake | 11 | 780 | 503 | 144 | 133 |
| Lex | 3 | 838 | 501 | 152 | 185 |
| 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 | 160 | 172,464 | 0 | 163,309 | 9,155 |

Top language: C++ Header 35.7%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/mysql/mysql-server/commit/4573da3722ad8cb3395b032b06f990226dd2db4d?reportId=b5946d1aab9f5aa2629f54a85a5d924b54ff41f035e3f1e3f269f1fb5c830e6b&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/4573da3722ad8cb3395b032b06f990226dd2db4d?reportId=b5946d1aab9f5aa2629f54a85a5d924b54ff41f035e3f1e3f269f1fb5c830e6b&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,194,606 lines of code, plus 2,255,284 comment lines and 1,236,147 blank lines, for 10,686,037 total lines at commit 4573da3722ad on November 24, 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 4573da3722ad, 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 4573da3722ad on November 24, 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
- [GPUOpen-LibrariesAndSDKs/HIPRT](https://octocounts.com/github/GPUOpen-LibrariesAndSDKs/HIPRT) — C++ Header, 370,540 code lines
- [kokkos/kokkos](https://octocounts.com/github/kokkos/kokkos) — C++ Header, 247,408 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,466 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [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)
