2009-09-16 14:03:18 +02:00
'\" t
2009-05-25 11:59:47 +02:00
. \"
2024-09-03 19:15:59 +02:00
.TH "\fBMSQL2MYSQL\fR" "1" "3 September 2024" "MariaDB 11.4" "MariaDB 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"
2024-09-03 19:15:59 +02:00
msql2mysql \- convert mSQL programs for use with MariaDB
2009-05-25 11:59:47 +02:00
.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
2024-09-03 19:15:59 +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 MariaDB by changing the names of the C API functions\& .
2009-05-25 11:59:47 +02:00
.PP
The
\fB msql2mysql\fR
2024-09-03 19:15:59 +02:00
utility performs the conversion of mSQL C API function calls to their MariaDB 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
2024-09-03 19:15:59 +02:00
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc., 2010-2024 MariaDB Foundation
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
2019-05-11 21:29:06 +03: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-1335 USA or see http://www.gnu.org/licenses/.
2009-09-16 14:03:18 +02:00
.sp
2009-05-25 11:59:47 +02:00
.SH "SEE ALSO"
2015-09-09 14:32:52 +02:00
For more information, please refer to the MariaDB Knowledge Base, available online at https://mariadb.com/kb/
2009-05-25 11:59:47 +02:00
.SH AUTHOR
2015-09-09 14:32:52 +02:00
MariaDB Foundation (http://www.mariadb.org/).