2
3
4
6 msql2mysql - convert mSQL programs for use with MySQL
7
9 msql2mysqlC-source-file ...
10
12 Initially, the MySQL C API was developed to be very similar to that for
13 the mSQL database system. Because of this, mSQL programs often can be
14 converted relatively easily for use with MySQL by changing the names of
15 the C API functions.
16
17 The msql2mysql utility performs the conversion of mSQL C API function
18 calls to their MySQL equivalents. msql2mysql converts the input file
19 in place, so make a copy of the original before converting it. For
20 example, use msql2mysql like this:
21
22 shell> cp client-prog.c client-prog.c.orig
23 shell> msql2mysql client-prog.c
24 client-prog.c converted
25
26 Then examine client-prog.c and make any post-conversion revisions that
27 may be necessary.
28
29 msql2mysql uses the replace utility to make the function name
30 substitutions. See replace(1).
31
33 Copyright 1997-2007 MySQL AB
34
35 This documentation is NOT distributed under a GPL license. Use of this
36 documentation is subject to the following terms: You may create a
37 printed copy of this documentation solely for your own personal use.
38 Conversion to other formats is allowed as long as the actual content is
39 not altered or edited in any way. You shall not publish or distribute
40 this documentation in any form or on any media, except if you
41 distribute the documentation in a manner similar to how MySQL
42 disseminates it (that is, electronically for download on a Web site
43 with the software) or on a CD-ROM or similar medium, provided however
44 that the documentation is disseminated together with the software on
45 the same medium. Any other use, such as any dissemination of printed
46 copies or use of this documentation, in whole or in part, in another
47 publication, requires the prior written consent from an authorized
48 representative of MySQL AB. MySQL AB reserves any and all rights to
49 this documentation not expressly granted above.
50
51 Please email <docs@mysql.com> for more information.
52
54 For more information, please refer to the MySQL Reference Manual, which
55 may already be installed locally and which is also available online at
56 http://dev.mysql.com/doc/.
57
59 MySQL AB (http://www.mysql.com/). This software comes with no
60 warranty.
61
62
63
64MySQL 5.0 07/04/2007 MSQL2MYSQL(1)