# mysql/mysql-server SLOC report

> As of 2026-09-15 (commit 6f6b3ca1b770), mysql/mysql-server contains 10,066,993 total lines: 6,793,549 code, 2,119,173 comments, 1,154,271 blank, across 31,862 files in 62 languages (top: C++ Header 34.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

mysql/mysql-server has 6,793,549 source lines of code out of 10,066,993 total lines across 31,862 files, counted from the 6f6b3ca1b7700b9f0fac936a5eb7ff71fa308054 ref at commit 6f6b3ca1b770 by the OctoCounts tokei engine on 2026-09-15. 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 6f6b3ca1b770, 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.5% of all lines, comments represent 21.1%, and the repository averages 213 code lines per file. C++ Header accounts for 34.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ Header | 15,808 | 3,349,727 | 2,372,263 | 548,397 | 429,067 |
| C++ | 4,824 | 3,303,400 | 2,306,524 | 607,879 | 388,997 |
| C Header | 5,619 | 1,621,799 | 883,022 | 570,797 | 167,980 |
| Bitbake | 2,163 | 380,294 | 291,634 | 44,826 | 43,834 |
| C | 537 | 356,890 | 262,552 | 52,414 | 41,924 |
| C# | 204 | 150,488 | 122,230 | 16,933 | 11,325 |
| JSON | 72 | 115,133 | 115,131 | 0 | 2 |
| Java | 547 | 145,880 | 94,116 | 35,951 | 15,813 |
| SQL | 204 | 97,280 | 87,521 | 6,464 | 3,295 |
| CMake | 469 | 68,469 | 46,659 | 15,402 | 6,408 |
| Autoconf | 192 | 51,787 | 34,113 | 10,234 | 7,440 |
| Shell | 94 | 41,885 | 30,175 | 7,316 | 4,394 |

Top language (C++ Header 34.9%). Generated at 2026-09-15T11:07:42.298071311+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/6f6b3ca1b7700b9f0fac936a5eb7ff71fa308054?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,066,993 total lines, including 6,793,549 code lines, 2,119,173 comment lines, and 1,154,271 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 6f6b3ca1b770, 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 6f6b3ca1b7700b9f0fac936a5eb7ff71fa308054 at commit 6f6b3ca1b770 on 2026-09-15T11:07:42.298071311+00:00.

## Similar repository reports

- [lightvector/KataGo](https://octocounts.com/github/lightvector/KataGo) — C++ Header, 701,870 code lines
- [love2d/love](https://octocounts.com/github/love2d/love) — C++ Header, 689,874 code lines
- [gexgd0419/NaturalVoiceSAPIAdapter](https://octocounts.com/github/gexgd0419/NaturalVoiceSAPIAdapter) — C++ Header, 230,023 code lines
- [seanbaxter/circle](https://octocounts.com/github/seanbaxter/circle) — C++ Header, 99,332 code lines
- [bytedance/flux](https://octocounts.com/github/bytedance/flux) — C++ Header, 53,975 code lines
- [xtensor-stack/xtensor](https://octocounts.com/github/xtensor-stack/xtensor) — C++ Header, 41,480 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)
