Rebuilding MySQL with same options

PREVIOUS POST
NEXT POST

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.

PREVIOUS POST
NEXT POST

Comments

  1. Antony Curtis says

    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.

  2. says

    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.

  3. says

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *