Get, build and test latest MariaDB the lazy way
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.
sudo zypper install git gcc gcc-c++ make bison ncurses ncurses-devel zlib-devel libevent-devel cmake openssl
apt-get -y build-essential bison build-dep mariadb-server
Fetch and checkout the MariaDB source to a subdirectory of the current directory
git clone firstname.lastname@example.org:MariaDB/server.git mariadb cd mariadb git checkout 10.5
The following command builds a server suitable for debugging or finding problems. There are other build scripts for other configurations.
cd mysql-test mtr --parallel=8 --force
(Older MariaDB version is using mysql_install_db)
Install the server (If needed)
You can also run and test mariadb directly from the build directory, 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!