2009-09-16 14:03:18 +02:00
'\" t
2009-05-25 11:59:47 +02:00
. \" Title: \fBmsql2mysql\fR
2009-09-16 14:03:18 +02:00
. \" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
. \" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
2010-04-28 15:06:11 +02:00
. \" Date: 04/06/2010
2009-05-25 11:59:47 +02:00
. \" Manual: MySQL Database System
. \" Source: MySQL 5.1
2009-09-16 14:03:18 +02:00
. \" Language: English
2009-05-25 11:59:47 +02:00
. \"
2010-04-28 15:06:11 +02:00
.TH "\FBMSQL2MYSQL\FR" "1" "04/06/2010" "MySQL 5\&.1" "MySQL Database System"
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2009-05-25 11:59:47 +02:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
. \" msql2mysql
2009-05-25 11:59:47 +02:00
.SH "NAME"
msql2mysql \- convert mSQL programs for use with MySQL
.SH "SYNOPSIS"
2009-09-16 14:03:18 +02:00
.HP \w '\fBmsql2mysql\fR\fB\fIC\-source\-file\fR\fR\fB\ \& .\&.\&.\fR\ 'u
\fB msql2mysql\fR \fB \fI C\- source\- file\fR \fR \fB \& .\& .\& .\fR
2009-05-25 11:59:47 +02:00
.SH "DESCRIPTION"
.PP
2009-09-16 14:03:18 +02:00
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\& .
2009-05-25 11:59:47 +02:00
.PP
The
\fB msql2mysql\fR
2009-09-16 14:03:18 +02:00
utility performs the conversion of mSQL C API function calls to their MySQL equivalents\& .
2009-05-25 11:59:47 +02:00
\fB msql2mysql\fR
2009-09-16 14:03:18 +02:00
converts the input file in place, so make a copy of the original before converting it\& . For example, use
2009-05-25 11:59:47 +02:00
\fB msql2mysql\fR
like this:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
2009-09-16 14:03:18 +02:00
shell> \fB cp client\- prog\& .c client\- prog\& .c\& .orig\fR
shell> \fB msql2mysql client\- prog\& .c\fR
client\- prog\& .c converted
2009-05-25 11:59:47 +02:00
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
Then examine
2009-09-16 14:03:18 +02:00
client\- prog\& .c
and make any post\- conversion revisions that may be necessary\& .
2009-05-25 11:59:47 +02:00
.PP
\fB msql2mysql\fR
uses the
\fB replace\fR
2009-09-16 14:03:18 +02:00
utility to make the function name substitutions\& . See
\fB replace\fR (1)\& .
2009-05-25 11:59:47 +02:00
.SH "COPYRIGHT"
2009-09-16 14:03:18 +02:00
.br
2009-05-25 11:59:47 +02:00
.PP
2010-04-28 15:06:11 +02:00
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
2009-05-25 11:59:47 +02:00
.PP
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
.PP
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
.PP
2009-09-16 14:03:18 +02:00
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
.sp
2009-05-25 11:59:47 +02:00
.SH "SEE ALSO"
For more information, please refer to the MySQL Reference Manual,
which may already be installed locally and which is also available
online at http://dev.mysql.com/doc/.
.SH AUTHOR
2009-09-16 14:03:18 +02:00
Sun Microsystems, Inc. (http://www.mysql.com/).