'mysql_config'

The mysql_config utility is an aid to developing MySQL-based programs written in C. It can be used to obtain the proper flags needed to compile C source files or link in MySQL libraries.

mysql_config is available as of MySQL 3.23.21.

Usage

mysql_config [options] 

Options Specific to mysql_config

  • --cflags

    Display the include directory flags needed to access MySQL header files.

  • --embedded, --embedded-libs

    These options are synonyms for --libmysqld-libs.

  • --libs

    Display the library flags needed to link in the client library.

  • --socket

    Display the default MySQL socket file pathname.

  • --port

    Display the default MySQL TCP/IP port number.

  • --version

    Display the MySQL version string.

  • --libmysqld-libs

    Display the library flags needed to link in libmysqld, the embedded server library.