MySQL代码分析(一)

最近学了一下JAVA,自然到了JDBC,先Oracle,再MySQL,感觉MySQL开源挺好,就拿来看一下。看了好多网上的介绍,作为一个菜鸟来说,好不容易找到了程序的入口,然后就一个一个CPP的分析吧,当作笔记了,当然,也不知道能看多少,看多少算多少吧嘿嘿。

/* Copyright (c) 2009 Sun Microsystems, Inc.
   Use is subject to license terms.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; version 2 of the License.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software Foundation,
   51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */

/* 
  main() for mysqld.
  Calls mysqld_main() entry point exported by sql library.
*/
extern int mysqld_main(int argc, char **argv);

int main(int argc, char **argv)
{
  return mysqld_main(argc, argv);
}

嘿嘿看到这一句就知道入口在哪了,程序也就知道怎么走的了。。。

Calls mysqld_main() entry point exported by sql library.

但是这一句想了半天也不明白是什么意思,是调用了SQL库中mysqld_main()接入点的意思么?SQL库是什么?好像就是mySQL-xxx/SQL这个文件夹吧。。。好了第一篇搞定了。。。什么也没有就找了个接入点,不过好的开始也算可以了,毕竟这篇代码都懂了,粗略看了一下后面的。。。我只能说,呵呵~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值