首页 → 数据库技术
背景:
阅读新闻
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号
