In which language MySQL has been written?

MySQL is written in C and C++, and its SQL parser is written in yacc.

MySQL is primarily written in the C and C++ programming languages.