Team LiB
Previous Section Next Section

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.

Usage

mysql_config [options]

Options Specific to mysql_config

  • --cflags

    Display the include directory flags needed to access MySQL header files and other C compiler flags that might be necessary.

  • --embedded, --embedded-libs

    These options are synonyms for --libmysqld-libs.

  • --include

    Display the include directory flags needed to access MySQL header files. The --cflags option is more general and normally is used in preference to --include.

  • --libmysqld-libs

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

  • --libs

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

  • --libs_r

    Display the library flags needed to link in the thread-safe client library.

  • --socket

    Display the default Unix socket file pathname.

  • --port

    Display the default TCP/IP port number.

  • --version

    Display the MySQL version string.

    Team LiB
    Previous Section Next Section