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.
As of 2026-10-21 (commit 561753af986c), mysql/mysql-server contains 10,680,705 total lines: 7,187,066 code, 2,256,479 comments, 1,237,160 blank, across 34,708 files in 66 languages (top: C++ Header 35.8%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
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.
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 | 16728 | 3630491 | 2571904 | 589488 | 469099 |
| C++ | 5340 | 3462115 | 2421659 | 633646 | 406810 |
| C Header | 6763 | 1773466 | 959120 | 625889 | 188457 |
| Bitbake | 2219 | 385539 | 295287 | 45749 | 44503 |
| C | 538 | 357327 | 262849 | 52498 | 41980 |
| C# | 204 | 150488 | 122230 | 16933 | 11325 |
| JSON | 79 | 115796 | 115794 | 0 | 2 |
| Java | 547 | 145888 | 94122 | 35953 | 15813 |
| SQL | 206 | 97501 | 87741 | 6465 | 3295 |
| CMake | 575 | 80223 | 54765 | 17569 | 7889 |
| Autoconf | 199 | 50108 | 32554 | 10352 | 7202 |
| Python | 97 | 40089 | 30583 | 4630 | 4876 |
Top language (C++ Header 35.8%). Generated at .
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.
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.
This OctoCounts report was generated from trunk at commit 561753af986c on 2026-10-21T02:40:25.225310358+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for mysql/mysql-server on this page — 7,187,066 code lines across 12 languages, counted by tokei.