Rebuilding MySQL Binary

Running RPM based or other packaged MySQL Binary you may have a problem if you would like to rebuild binary for some reason – change some build settings, apply some third party patches or simply try latest snapshot (This time I was both applying patches for Innodb scalability and Vadim’s patches to get proper slow query log). There are number of things as default paths and GCC build and link options you would like to keep the same as in original binary to minimize the change and finding this was not pleasant.

This time however Vadim advised me better solution – run mysqlbug script and get configure options from it. This is so easy.

After build is completed I simply take mysqld from sql directory and try it out as this is the only piece which I’m interested in. Quick to try, quick to rollback. You may run make install though if you need to but better to be ready to reinstall rpm after it 🙂

Share this post

Comments (2)

  • jgabios

    I always wanted to compile mysql myself, but never had the guts for it because of their warning on their download page.
    “Source downloads
    For maximum stability and performance, we recommend that you use the binaries we provide.”
    is there a guide on how to tune mysql when compiling, or could you provide one on this performance blog?
    on my lamp server, i always compile everything myself, but mysql. I fear it would not perform well.

    November 17, 2006 at 3:23 am
  • peter


    I think MySQL binaries were decent and fact everyone would have binaries compiled same way helped in troubleshooting bugs.

    No with no builds for Community binaries we’ll however all need to learn to compile MySQL or trust not so official builds 🙂

    November 17, 2006 at 9:02 am

Comments are closed.

Use Percona's Technical Forum to ask any follow-up questions on this blog topic.