msql2mysql
— Convert mSQL Programs for Use with MySQL
371
Note for developers: Option file handling is implemented in the C client library simply by processing
all options in the appropriate group or groups before any command-line arguments. This works well
for programs that use the last instance of an option that is specified multiple times. If you have a C or
C++ program that handles multiply specified options this way but that doesn't read option files, you
need add only two lines to give it that capability. Check the source code of any of the standard MySQL
clients to see how to do this.
Several other language interfaces to MySQL are based on the C client library, and some of them
provide a way to access option file contents. These include Perl and Python. For details, see the
documentation for your preferred interface.
4.7.1.
msql2mysql
— Convert mSQL Programs for Use with MySQL
Initially, the MySQL C API was developed to be very similar to that for the mSQL database system.
Because of this, mSQL programs often can be converted relatively easily for use with MySQL by
changing the names of the C API functions.
The
msql2mysql
utility performs the conversion of mSQL C API function calls to their MySQL
equivalents.
msql2mysql
converts the input file in place, so make a copy of the original before
converting it. For example, use
msql2mysql
like this:
shell>
cp client-prog.c client-prog.c.orig
shell>
msql2mysql client-prog.c
client-prog.c converted
Then examine
client-prog.c
and make any post-conversion revisions that may be necessary.
msql2mysql
uses the
replace
utility to make the function name substitutions. See
Section 4.8.2,
“
replace
— A String-Replacement Utility”
.
4.7.2.
mysql_config
— Display Options for Compiling Clients
mysql_config
provides you with useful information for compiling your MySQL client and connecting it
to MySQL. It is a shell script, so it is available only on Unix and Unix-like systems.
mysql_config
supports the following options.
•
--cflags
[371]
Compiler flags to find include files and critical compiler flags and defines used when compiling the
libmysqlclient
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
--
include
[371]
for more portable options that contain only include paths.
•
--include
[371]
Compiler options to find MySQL include files.
•
--libmysqld-libs
[371]
,
--embedded
[371]
Libraries and options required to link with the MySQL embedded server.
•
--libs
[371]
Libraries and options required to link with the MySQL client library.
•
--libs_r
[371]
Libraries and options required to link with the thread-safe MySQL client library.
•
--port
[371]
Содержание 5.0
Страница 1: ...MySQL 5 0 Reference Manual ...
Страница 18: ...xviii ...
Страница 60: ...40 ...
Страница 396: ...376 ...
Страница 578: ...558 ...
Страница 636: ...616 ...
Страница 844: ...824 ...
Страница 1234: ...1214 ...
Страница 1426: ...MySQL Proxy Scripting 1406 The following diagram shows an overview of the classes exposed by MySQL Proxy ...
Страница 1427: ...MySQL Proxy Scripting 1407 ...
Страница 1734: ...1714 ...
Страница 1752: ...1732 ...
Страница 1783: ...Configuring Connector ODBC 1763 ...
Страница 1793: ...Connector ODBC Examples 1773 ...
Страница 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Страница 1842: ...Connector Net Installation 1822 5 Once the installation has been completed click Finish to exit the installer ...
Страница 1864: ...Connector Net Visual Studio Integration 1844 Figure 20 24 Debug Stepping Figure 20 25 Function Stepping 1 of 2 ...
Страница 2850: ...2830 ...
Страница 2854: ...2834 ...
Страница 2928: ...2908 ...
Страница 3000: ...2980 ...
Страница 3122: ...3102 ...
Страница 3126: ...3106 ...
Страница 3174: ...3154 ...
Страница 3232: ...3212 ...