All pages
Powered by GitBook
1 of 1

Loading...

Get, Build and Test Latest MariaDB the Lazy Way

A simplified guide to quickly fetching, building, and testing the latest MariaDB source from GitHub.

The intention of this documentation is show all the steps of getting, building and testing the latest MariaDB server (10.5 at time of writing) from GitHub. Each stage links to the full documentation for that step if you need to find out more.

Install all tools needed to build MariaDB

OpenSuse

Debian

Fetch and checkout the MariaDB source to a subdirectory of the current directory

The following command builds a server the same way that is used for building releases. Use cmake . -DCMAKE_BUILD_TYPE=Debug to build for debugging.

(Older MariaDB version use )

Install the Server (If needed)

You can also , in which case you can skip the rest of the steps below.

Start the server in it's own terminal window for testing. Note that the directory depends on your system!

This page is licensed: CC BY-SA / Gnu FDL

Build It
Check the Server (If You Want To)
Install the Default Databases
mysql_install_db
run and test mariadb directly from the build directory
Start the Server
sudo zypper install git gcc gcc-c++ make bison ncurses ncurses-devel zlib-devel libevent-devel cmake openssl
apt install -y build-essential bison libgnutls28-dev
apt build-dep mariadb-server
git clone https://github.com/MariaDB/server.git mariadb
cd mariadb
git checkout 11.4
cmake . -DBUILD_CONFIG=mysql_release && cmake --build . --parallel=8
mysql-test/mtr --parallel=8 --force
./scripts/mariadb-install-db --srcdir=.
cmake --install .
/usr/sbin/mariadbd
Set Up git