The invention relates to the technical field of databases, and particularly discloses a kernel-level multi-protocol supporting
database system and a data communication method. According to the
system, the support capabilities of multiple
database protocols such as MySQL and PostgreSQL are originally integrated in a
database kernel to form a unified database instance. The basic principle is that
client connections are directly distributed through an instantaneous routing mechanism of a network port;
syntax and deep
semantics (such as transactions, types and error codes) of different protocols are converted into a unified relational algebraic expression in a coordinated mode through a built-in unified semantic core layer; and optimizing and executing the unified semantic expression through a protocol-independent core
processing layer, and realizing cross-protocol
execution plan and result reuse by using a global DAG cache based on semantic hash. According to the method, high-performance and high-compatibility multi-protocol data service is realized, and the problems of performance overhead and incomplete semantic conversion caused by an external proxy architecture are thoroughly eliminated.