LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-29-2009, 04:15 AM   #1
krap
LQ Newbie
 
Registered: May 2008
Posts: 25

Rep: Reputation: 15
mysql source code


hi,

i actually want to browse the source code of certain files of MySQL which might not be limited to one version but multiple. So what will be the best way to do so.

thanks
krap
 
Old 05-29-2009, 11:30 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by krap View Post
hi,

i actually want to browse the source code of certain files of MySQL which might not be limited to one version but multiple. So what will be the best way to do so.

thanks
krap
Go to the MySQL site, download the source, and look at it.
 
Old 06-02-2009, 07:09 AM   #3
krap
LQ Newbie
 
Registered: May 2008
Posts: 25

Original Poster
Rep: Reputation: 15
ya...thanx... i got it....also I have one more doubt.

suppose I issue an instruction say "Create Table some_table". Now I want to see the code executed for this instrcution. How can I find what code is executed on behalf of this statement.

thanx in advance
 
Old 06-02-2009, 04:25 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by krap View Post
ya...thanx... i got it....also I have one more doubt.

suppose I issue an instruction say "Create Table some_table". Now I want to see the code executed for this instrcution. How can I find what code is executed on behalf of this statement.

thanx in advance
Open the source code files and search for it.

And spell out your words, please.
 
Old 06-04-2009, 09:06 AM   #5
soleilarw
Member
 
Registered: Apr 2009
Posts: 107

Rep: Reputation: 19
You have to download the whole code base, then find the main entry point of the source, and then wade through the code until you found it. You can also launch mysql (when compiled with debugger symbols) in a debugger and go through it by means of breakpoints. Either way, this will be a tour de force that will put all your coding knowledge to the test. It will also take a lot of time, so make sure it's worth the effort.

Linux Archive

Last edited by soleilarw; 06-18-2009 at 04:31 AM.
 
Old 06-05-2009, 10:08 AM   #6
krap
LQ Newbie
 
Registered: May 2008
Posts: 25

Original Poster
Rep: Reputation: 15
thank you for that kind reply.

I know its a difficult task since i have been trying it this week. What I actually want to achieve is something like this.

From bug logs I get to know what are the bugs and then want to go to the code of MySql which caused it and understand it.

So what is the best way to do it??. The main problem that I am facing right now is that I cant find a patch from where I should start reading it which caused the bug.

Can you help regarding the same and suggest me the best way to do it.

Thanks in advance

krap
 
Old 06-05-2009, 11:13 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by krap View Post
thank you for that kind reply.

I know its a difficult task since i have been trying it this week. What I actually want to achieve is something like this.

From bug logs I get to know what are the bugs and then want to go to the code of MySql which caused it and understand it.

So what is the best way to do it??. The main problem that I am facing right now is that I cant find a patch from where I should start reading it which caused the bug.

Can you help regarding the same and suggest me the best way to do it.

Thanks in advance

krap
If you're wanting to fix bugs in MySQL, there should be references in the bugtracker on the MySQL site. It'll tell you where to look and what the bug is.

Otherwise, see my previous posts, and the one from soleilarw: OPEN THE SOURCE CODE FILES AND LOOK IN THEM. Not much to say past there....each bug is in a different part of the code, so it's not like anyone can say "Open file X, and go to line 142"....
 
Old 06-08-2009, 03:06 AM   #8
krap
LQ Newbie
 
Registered: May 2008
Posts: 25

Original Poster
Rep: Reputation: 15
yaa...I think I should try bugtracker.......can you guide me where to look for it and how......I will be highly obliged.

krap
 
Old 06-09-2009, 01:36 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I'd read some of these forums http://forums.mysql.com/ eg 'Source, Builds, Binaries' and 'QA' to start with.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Freebsd mysql source code install error wanghao *BSD 1 04-17-2009 01:13 PM
MySQL Error Code 1064 - MySQL Administrator a_m0d Linux - Server 6 02-27-2009 04:02 AM
LXer: Voip Encryption, source code open source LXer Syndicated Linux News 0 07-09-2006 03:21 PM
mysql source code anishtg Linux - Newbie 1 11-30-2004 08:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration