If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Understand mysql source code

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-04, 16:08
LION LION is offline
Registered User
 
Join Date: Jan 2004
Posts: 2
Angry Understand mysql source code

Hi, ALL

I have problems understanding the libmysql.def and libmysqld.def. I know they are interfaces for client and server. A lot of other modules are just calling functions definded in those two. But I can not see where they are actually implemented. For eaxample, mysql_real_connect, it is shown in both libmysql.def and libmysqld.def, but I can not find it in any other places in MYSQL source code. Where is the actual implementation of mysql_real_connect?

Thanks a lot in advance.

LION
Reply With Quote
  #2 (permalink)  
Old 01-09-04, 12:17
LION LION is offline
Registered User
 
Join Date: Jan 2004
Posts: 2
Hi:

I am now assigned a job to design and implesment a caching mechanism on top of MySQL on both client and server. What I need to do is to intercept a query packet and process it on cached data and then send it to server and when data results are back from server, I need to intercept it again and cache it before it is displayed to client. In this project, I need to know how a query is moving along from functions to functions ( or from modules to modules ) and find out where is the possible point to add my code in. I am desperately needing help on source code. Any suggestions on how to understand the source code of MySql is helpful. Another thought is that: is there a way to run MySql in debug mode, such as gdb, that I can advance the program line by line. Please help on this if you have time.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On