MySQL 从接收连接到执行连接命令的一个源码流程

来源:这里教程网 时间:2026-02-27 10:50:19 作者:

mysql 从接收连接到执行连接命令的一个源码流程函数从上到下的调用顺序mysqld_mainhandle_connections_methodshandle_connection

Linux公社

首页 → 数据库技术

背景:

阅读新闻

mysql 从接收连接到执行连接命令的一个源码流程

[日期:2011-06-08] 来源:Linux社区  作者:fengbangyue [字体:]

mysql 从接收连接到执行连接命令的一个源码流程
函数从上到下的调用顺序
mysqld_main
handle_connections_methods
handle_connections_sockets_thread
handle_connections_sockets
create_new_thread
create_thread_to_handle_connection
handle_one_connection
do_handle_one_connection
login_connection
prepare_new_connection_state
execute_init_command
dispatch_command
执行命令
switch (command)
{
case COM_INIT_DB:

case COM_STMT_EXECUTE:
{
mysqld_stmt_execute(thd, packet, packet_length);
break;
}

}
execute_loop
execute
mysql_execute_command
switch (lex->sql_command) {此处就是各种查询命令的执行,该部分代码是非常非常的长了

0

MySQL内存池结构源码 my_alloc.h

MySQL 服务器监听客户端连接源码

相关资讯       MySQL教程 

图片资讯      

本文评论   查看全部评论 (0)

评论声明

最新资讯

本周热门

Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
本站(LinuxIDC)所刊载文章不代表同意其说法或描述,,仅为提供更多信息,也不构成任何建议。


Copyright © 2006-2011 Linux公社 All rights reserved 浙ICP备06018118号

相关推荐