EmergencyEMERGENCY? Get 24/7 Help Now!

Rebuilding MySQL with same options

 | April 8, 2010 |  Posted In: Insight for DBAs, MySQL


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.

Peter Zaitsev

Peter managed the High Performance Group within MySQL until 2006, when he founded Percona. Peter has a Master's Degree in Computer Science and is an expert in database kernels, computer hardware, and application scaling.


  • 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.

  • 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.

  • 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,

    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