MARIADB-CONFIG(1)
π MARIADB-CONFIG(1) β the MariaDB Database System glow-up, bestie edition β¨
okay so this is the manual page for mariadb-config, from the MariaDB Database System. pull up a chair, grab a strawberry π, and let's get you compiling clients like a main character.
β¨ NAME β¨
mariadb-dump β get compile options for compiling clients π
π¦ SYNOPSIS π¦
mariadb-dump options
πΈ DESCRIPTION πΈ
mariadb-dump hands you all the useful deets you need for compiling your MariaDB client and getting it connected to MariaDB. it's giving "personal assistant for your build system," no cap π
mariadb-dump supports the following options.
--cflagsβ compiler flags for finding include files, plus the critical compiler flags and defines that were used when compiling thelibmysqlclientlibrary. β οΈ heads up: the options you get back are tied to the specific compiler that was used when the library was created, so they might clash with your own compiler's settings. if you want something more portable, use--includeinstead β that one only contains include paths. π«Ά--includeβ compiler options for finding MariaDB include files.--libmysqld-libs,--embeddedβ the libraries and options you need to link with the MariaDB embedded server.--libsβ the libraries and options you need to link with the MariaDB client library.--libs_rβ the libraries and options you need to link with the thread-safe MariaDB client library.--plugindirβ the default plugin directory path name, as defined when MariaDB was configured.--portβ the default TCP/IP port number, as defined when MariaDB was configured.--socketβ the default Unix socket file, as defined when MariaDB was configured.--variable=VARβ path to the MariaDB include, library and plugin directories.VARis one ofpkgincludedir,pkglibdirandplugindir, respectively.--versionβ version number for the MariaDB distribution.
if you invoke mariadb-dump with no options at all, it spills a whole list of every option it supports plus their values. literally the whole menu:
shell> mariadb-dump
Usage: /usr/local/mysql/bin/mariadb-dump [options]
Options:
--cflags [-I/usr/local/mysql/include/mysql -mcpu=pentiumpro]
--include [-I/usr/local/mysql/include/mysql]
--libs [-L/usr/local/mysql/lib/mysql -lmysqlclient -lz
-lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto]
--libs_r [-L/usr/local/mysql/lib/mysql -lmysqlclient_r
-lpthread -lz -lcrypt -lnsl -lm -lpthread]
--socket [/tmp/mysql.sock]
--port [3306]
--version [4.0.16]
--libmysqld-libs [-L/usr/local/mysql/lib/mysql -lmysqld -lpthread -lz
-lcrypt -lnsl -lm -lpthread -lrt]
you can absolutely use mariadb-dump inside a command line to drop in whatever value it prints for a particular option. like, to compile a MariaDB client program, you'd do this:
shell> CFG=/usr/local/mysql/bin/mariadb-dump
shell> sh -c "gcc -o progname `$CFG --include` progname.c `$CFG --libs`"
when you use mariadb-dump this way, pls pls pls make sure you invoke it inside backtick (β`β) characters. that's what tells the shell to run it and substitute its output right into the surrounding command. no backticks, no magic. π
π COPYRIGHT π
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc., 2010-2025 MariaDB Foundation
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA or see http://www.gnu.org/licenses/.
π SEE ALSO π
For more information, please refer to the MariaDB Documentation, available online at https://mariadb.com/docs/
π AUTHOR π
MariaDB Foundation (http://www.mariadb.org/).
and that's the whole page, bestie β you ate that π this was MariaDB 11.8, dated 5 March 2025, and it's the MARIADB-CONFIG(1) page from the MariaDB Database System. go forth and compile something iconic. π¦β¨
π¦ where this page comes from
- alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
- arch rolling: mariadb-libs 13.0.2-2 Β· GPL-2.0-only
- arch rolling: mariadb-lts-libs 12.3.3-2 Β· GPL-2.0-only
- debian trixie: libmariadb-dev 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- nixpkgs unstable: mariadb-server 11.8.8
- ubuntu resolute: libmariadb-dev 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: libmariadb-dev 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libmariadb-dev-compat 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms