Getting the MariaDB Source Code
From Askmonty.org
The instructions on this page will help you download your own local branch of the MariaDB source code repository with the full revision history. If you want a tarball of the source without the revision history, see the MariaDB download page.
Prerequisites
You need Bazaar for revision control.
Instructions
- Prepare a directory to keep your MariaDB code in:
mkdir $repo # where $repo is some directory (ex: ~/repos) cd $repo bzr init-repo maria --format=1.9 # this creates ~/repos/maria
Note: If you plan on pushing new code or bug fixes to LaunchPad, "--format=1.9" is recommended. Without it, pushing your branch to LP will take a very long time!
- Get a clean local copy of the Maria repo with:
cd $maria-repo # (ex: ~/repos/maria) bzr branch lp:maria trunk
Note: The initial branch operation can take a long time depending on the speed of your Internet connection and the load on launchpad. For this initial branch you need to download 600+ MB of data.
If you get an error like:
bzr: ERROR: Unknown repository format: 'Bazaar RepositoryFormatKnitPack6 (bzr 1.9)'
then the version of bzr you are using is too old. Using version 1.12 or higher will fix this error.
- You can see the current history with:
cd $maria-repo/trunk bzr log | less
If you are going to be hacking on the MariaDB source code. See the Contributing Code page for help.
If you just want to compile MariaDB at this point, see the Compiling page.



