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.

4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Antony Curtis

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.

Roland Bouman

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.