2009-09-16 14:03:18 +02:00
'\" t
2009-05-25 11:59:47 +02:00
. \"
2020-05-15 17:35:47 +02:00
.TH "\FBMYSQL_CONFIG\FR" "1" "15 May 2020" "MariaDB 10\&.6" "MariaDB Database System"
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2009-05-25 11:59:47 +02:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
. \" mysql_config
2009-05-25 11:59:47 +02:00
.SH "NAME"
mysql_config \- get compile options for compiling clients
.SH "SYNOPSIS"
2009-09-16 14:03:18 +02:00
.HP \w '\fBmysql_config\ \fR \fB \fI options\fR\fR\ 'u
2009-05-25 11:59:47 +02:00
\fB mysql_config \fR \fB \fI options\fR \fR
.SH "DESCRIPTION"
.PP
\fB mysql_config\fR
2015-09-09 14:32:52 +02:00
provides you with useful information for compiling your MariaDB client and connecting it to MariaDB\& .
2009-05-25 11:59:47 +02:00
.PP
\fB mysql_config\fR
2010-04-28 15:06:11 +02:00
supports the following options\& .
2009-09-16 14:03:18 +02:00
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_config: cflags option
. \" cflags option: mysql_config
2009-05-25 11:59:47 +02:00
\fB \- \- cflags\fR
.sp
Compiler flags to find include files and critical compiler flags and defines used when compiling the
libmysqlclient
2009-09-16 14:03:18 +02:00
library\& . The options returned are tied to the specific compiler that was used when the library was created and might clash with the settings for your own compiler\& . Use
2009-05-25 11:59:47 +02:00
\fB \- \- include\fR
2009-09-16 14:03:18 +02:00
for more portable options that contain only include paths\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_config: include option
. \" include option: mysql_config
2009-05-25 11:59:47 +02:00
\fB \- \- include\fR
.sp
2015-09-09 14:32:52 +02:00
Compiler options to find MariaDB include files\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_config: libmysqld-libs option
. \" libmysqld-libs option: mysql_config
. \" mysql_config: embedded option
. \" embedded option: mysql_config
2009-05-25 11:59:47 +02:00
\fB \- \- libmysqld\- libs\fR ,
\fB \- \- embedded\fR
.sp
2015-09-09 14:32:52 +02:00
Libraries and options required to link with the MariaDB embedded server\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_config: libs option
. \" libs option: mysql_config
2009-05-25 11:59:47 +02:00
\fB \- \- libs\fR
.sp
2015-09-09 14:32:52 +02:00
Libraries and options required to link with the MariaDB client library\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_config: libs_r option
. \" libs_r option: mysql_config
2009-05-25 11:59:47 +02:00
\fB \- \- libs_r\fR
.sp
2015-09-09 14:32:52 +02:00
Libraries and options required to link with the thread\- safe MariaDB client library\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_config: plugindir option
. \" plugindir option: mysql_config
2009-05-25 11:59:47 +02:00
\fB \- \- plugindir\fR
.sp
2015-09-09 14:32:52 +02:00
The default plugin directory path name, defined when configuring MariaDB\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_config: port option
. \" port option: mysql_config
2009-05-25 11:59:47 +02:00
\fB \- \- port\fR
.sp
2015-09-09 14:32:52 +02:00
The default TCP/IP port number, defined when configuring MariaDB\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql_config: socket option
. \" socket option: mysql_config
2009-05-25 11:59:47 +02:00
\fB \- \- socket\fR
.sp
2015-09-09 14:32:52 +02:00
The default Unix socket file, defined when configuring MariaDB\& .
2009-09-16 14:03:18 +02:00
.RE
2009-05-25 11:59:47 +02:00
.sp
2009-09-16 14:03:18 +02:00
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2013-06-13 00:13:23 +02:00
. \" mysql_config: variable option
. \" variable option: mysql_config
\fB \- \- variable=VAR\fR
.sp
2015-09-09 14:32:52 +02:00
Path to MariaDB include, library and plugin directories\& . \fB VAR\fR is one of
2013-06-13 00:13:23 +02:00
`pkgincludedir`, `pkglibdir` and `plugindir`, respectively\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-09-16 14:03:18 +02:00
. \" mysql_config: version option
. \" version option: mysql_config
\fB \- \- version\fR
2009-05-25 11:59:47 +02:00
.sp
2015-09-09 14:32:52 +02:00
Version number for the MariaDB distribution\& .
2009-05-25 11:59:47 +02:00
.RE
.PP
If you invoke
\fB mysql_config\fR
with no options, it displays a list of all options that it supports, and their values:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB mysql_config\fR
Usage: /usr/local/mysql/bin/mysql_config [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]
2009-09-16 14:03:18 +02:00
\- \- socket [/tmp/mysql\& .sock]
2009-05-25 11:59:47 +02:00
\- \- port [3306]
2009-09-16 14:03:18 +02:00
\- \- version [4\& .0\& .16]
2009-05-25 11:59:47 +02:00
\- \- libmysqld\- libs [\- L/usr/local/mysql/lib/mysql \- lmysqld \- lpthread \- lz
\- lcrypt \- lnsl \- lm \- lpthread \- lrt]
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
You can use
\fB mysql_config\fR
2015-09-09 14:32:52 +02:00
within a command line to include the value that it displays for a particular option\& . For example, to compile a MariaDB client program, use
2009-05-25 11:59:47 +02:00
\fB mysql_config\fR
as follows:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB CFG=/usr/local/mysql/bin/mysql_config\fR
2009-09-16 14:03:18 +02:00
shell> \fB sh \- c "gcc \- o progname `$CFG \- \- include` progname\& .c `$CFG \- \- libs`"\fR
2009-05-25 11:59:47 +02:00
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
When you use
\fB mysql_config\fR
2009-09-16 14:03:18 +02:00
this way, be sure to invoke it within backtick (\(lq `\(rq ) characters\& . That tells the shell to execute it and substitute its output into the surrounding command\& .
2009-05-25 11:59:47 +02:00
.SH "COPYRIGHT"
2009-09-16 14:03:18 +02:00
.br
2009-05-25 11:59:47 +02:00
.PP
2020-05-15 17:35:47 +02:00
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc., 2010-2020 MariaDB Foundation
2009-05-25 11:59:47 +02:00
.PP
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.
.PP
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.
.PP
2019-05-11 20:29:06 +02:00
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/.
2009-09-16 14:03:18 +02:00
.sp
2009-05-25 11:59:47 +02:00
.SH "SEE ALSO"
2015-09-09 14:32:52 +02:00
For more information, please refer to the MariaDB Knowledge Base, available online at https://mariadb.com/kb/
2009-05-25 11:59:47 +02:00
.SH AUTHOR
2015-09-09 14:32:52 +02:00
MariaDB Foundation (http://www.mariadb.org/).