Rebuilding MySQL with same options

Every so often I am working on the system with custom compiled MySQL. How to upgrade to the new MySQL Options while preserving as much of original compilation options as possible if original build scripts are not available ?
MySQL distribution has a great script called mysqlbug which was supposed to be used for bug submission. I never have seen anyone using it for this purpose but it is great in providing information about current built. Especially you may be looking at “Configure-Command”:

Assuming MySQL was properly built and installed these are configuration options it was built with. Be careful however – if several packages were built the configuration options will be from one of them – not always the server. As you can see this sample includes –without-server so it is probably coming from building client package. It needs to be edited out so server is built.

Share this post

Comments (4)

  • Antony Curtis Reply

    If the OurDelta/MariaDB 5.1 builds includes the show_ccflags_configure patch, then showing the configure command would be as simple as:

    mysqld –conf-command

    Currently, this patch is not included by default.

    April 8, 2010 at 6:40 pm
  • peter Reply

    Thanks Antony,

    This is very good. Actually it may be good to have ie available from inside MySQL – all mysqldebug could be done as “SHOW BUILDINFO” or something.

    April 8, 2010 at 7:13 pm
  • Roland Bouman Reply

    Hi Peter!

    yeah, this is a very handy. I wrote about it a while ago, and got a useful comment from Arjen that unfortunately the mysqlbug script itself is deprecated. Details here: http://rpbouman.blogspot.com/2008/07/building-mysql-from-source-theres-fine.html

    kind regards,
    Roland.

    April 9, 2010 at 12:40 am
  • peter Reply

    Roland,

    Thanks… Yes indeed the script is deprecated for its purpose but I think it is still pretty helpful to learn how MySQL was built. I wish it would always report settings for server.

    April 10, 2010 at 1:49 pm

Leave a Reply