MySQL Forums
Forum List  »  Source, Builds, Binaries

Build MySQL from source with debug enabled
Posted by: Zhan Li
Date: April 07, 2014 12:49PM

Hi All,

I'm building mysql-5.6.16 from source on RedHat. I was wondering how to enable debug option so that the DBUG statements in the source code would be executed?

To be more specific, in file, there's DBUG_EXECUTE() in greedy_search() as following:

DBUG_EXECUTE("opt", print_plan(join, n_tables, record_count, read_time, read_time, "optimal"););

I'd like to see the printed out "optimal plan", what should I do? Thanks.


Options: ReplyQuote

Written By
Build MySQL from source with debug enabled
April 07, 2014 12:49PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.