1MSQL2MYSQL(1) MySQL Database System MSQL2MYSQL(1)
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 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
34
35 This documentation is free software; you can redistribute it and/or
36 modify it only under the terms of the GNU General Public License as
37 published by the Free Software Foundation; version 2 of the License.
38
39 This documentation is distributed in the hope that it will be useful,
40 but WITHOUT ANY WARRANTY; without even the implied warranty of
41 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
42 General Public License for more details.
43
44 You should have received a copy of the GNU General Public License along
45 with the program; if not, write to the Free Software Foundation, Inc.,
46 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see
47 http://www.gnu.org/licenses/.
48
49
51 For more information, please refer to the MySQL Reference Manual, which
52 may already be installed locally and which is also available online at
53 http://dev.mysql.com/doc/.
54
56 Sun Microsystems, Inc. (http://www.mysql.com/).
57
58
59
60MySQL 5.1 04/06/2010 MSQL2MYSQL(1)