Start with
https://mariadb.com/kb/en/Building_MariaDB_on_Windows/
Then run mariadb-install-db.exe in sq\RelWithDebInfo
dir
.\mariadb-install-db.exe --datadir ..\..\datadir
Then start mariadb.exe in the same folder.
In another terminal, run in client\RelWithDebInfo
folder