MySQL++

Artifact [adc048af18]
Login

Artifact adc048af18fb0d7b56b5cd88b19b24be0ebd22d6592d84a599e8b44b552617e0:

Wiki page [MySQL++] by tangent 2019-09-03 16:08:47.
D 2019-09-03T16:08:47.455
L MySQL++
N text/x-markdown
P 6b3db25333a8fdaa04b25594f5cfd64b368fb5b2cc952760c09582ab8f67ad2f
U tangent
W 5994
<img src="/mysqlpp/raw/static/logo-small.jpg" alt="MySQL++ rocks" width="300" height="142" style="float:right; margin-left:20px" />

MySQL++ is a C++ wrapper for [MySQL](http://mysql.com/)’s C API. It is built around the same principles as the Standard C++ Library, to make dealing with the database as easy as dealing with STL containers. In addition, MySQL++ provides facilities that let you avoid the most repetitive sorts of SQL within your own code, providing native C++ interfaces for these common tasks.

If you have questions about this project and can’t find an answer in the [documentation](/wiki?name=Documentation) or the [mailing list archives](http://lists.mysql.com/plusplus/), ask on [the web forum](/forum) or [the mailing list](http://lists.mysql.com/plusplus/). We also have a [ticket system](/tktnew), but it's best to discuss such things first before filing a ticket.


## <a name="stable"></a>Latest Stable Version

Before upgrading an existing version of MySQL++, please scan through the [change log](/doc/trunk/ChangeLog.md) first. If you’re coming from a much older version, better read through the “[Incompatible Library Changes](doc/html/userman/breakages.html)” chapter in the [user manual](doc/html/userman/) instead. 


### <a name="source"></a>Source Code

The MySQL++ source code is available in several forms:

*   **Release Tarball:** [mysql++-3.2.5.tar.gz](releases/mysql++-3.2.5.tar.gz) (4.5 MiB, 2019.07.21) — If you aren’t sure which file to download, download this.

*  **Release SRPM:** [mysql++-3.2.5-1.el7.src.rpm](releases/mysql++-3.2.5-1.el7.src.rpm) (3.3 MiB, 2019.07.21) — For those that need to build their own binary RPMs:

        $ rpmbuild --rebuild /wherever/it/is/mysql++-3.2.5-1.el7.src.rpm

    The resulting `mysql++`, `mysql++-devel` and `mysql++-manuals` RPMs should then be found in `~/rpmbuild/RPMS/x86_64` if you did it on a 64-bit x86 based Linux box.

*  **Tip-of-trunk Tarball:** [mysql++-trunk.tar.gz](/tarball/mysql%2B%2B-trunk.tar.gz?uuid=trunk) — For those who need the latest bleeding-edge version without bothering with Fossil. This is "stable" in the sense that our repository trunk almost always compiles and runs; experimental work is done on branches to avoid destabilizing trunk.

*   **Fossil Repository:** You may [clone our Fossil repository](/doc/trunk/HACKERS.md) to get the current work on MySQL++ with [abridged history](/wiki?name=Abridged+Version+History) going back to the project's founding, the wiki contents, our ticket tracker contents, forum posts, and more. The repository is [well-tagged](/taglist), so you can compare versions, roll back to old versions, etc. This is the best option for those who want to participate in the development of MySQL++. 

*   **GitHub Repository:** This Fossil repository is [mirrored nightly, here](https://github.com/tangentsoft/mysqlpp). We [do not accept PRs](/file/HACKERS.md#patches) via that channel.


### <a name="binary"></a>Binary Packages

<img src="https://tangentsoft.com/mysqlpp/bitmaps/pkgstat.svg" alt="MySQL++ packaging status" style="float:right; margin-left:20px" />

MySQL++ has been picked up by many package distros. In addition to those listed in the table (right) it's also been spotted [in FreeBSD](http://www.freshports.org/databases/mysql++3/). Since these packages are properly integrated into their host distributions, we do not offer competing binary packages here.

If you want something different in your binary package than you get in the standard package distro for your OS, you should build it from [source](#source) on the target OS, or else you are likely to have [problems](#segfaults).


## <a name="oldver"></a>Old Versions

If you need a particular older version of MySQL++, you can either grab the raw source code for it from the [Fossil tag list page](/taglist) or you can [browse](/releases) the old version archive.

Those still needing MySQL++ 2.x might be interested in the [`v2.3.2-modern`](https://tangentsoft.com/mysqlpp/timeline?r=v2.3.2-modern) branch, which makes minimal changes to version 2.3.2 — the last release in the 2.x line — to allow it to build on modern systems. Essentially, it contains build fixes analogous to those we've done in the 3.x line without backporting any actual features or behavior changes from 3.x. This branch is unlikely to ever be released, but it is intended to be "stable" at all times.


## <a name="docs"></a>Documentation

The user and reference manuals are shipped in the source code tarball above. They are also [available online](/doc/).


## <a name="faq"></a>Frequently-Asked Questions

The [FAQ list](/wiki?name=FAQ) answers many commonly-asked questions about MySQL++.


## <a name="contrib"></a>Contributing to the Effort

The easiest thing to do if you want to help out with the MySQL++ development effort is to participate on the [mailing list](http://lists.mysql.com/plusplus/) and/or [web forum](/forum). The library's primary developer does not mind at all if someone else answers a question before he can get to it. <b><tt>:)</tt></b> It’s also frequently helpful to have different voices contributing to discussions about the library’s future.

If you want to participate in the coding effort, the MySQL++ development project is hosted by [Fossil](http://fossil-scm.org/), a distributed version control similar to Git but much easier to use. See [the Hackers file](/file/HACKERS.md) for instructions on working with Fossil and the MySQL++ source code.

For a great source of projects to tackle, see [the Wishlist](/features).

If you just want to keep up on the in-progress developments, see [the project timeline](/timeline), which is also available in [RSS form](/timeline.rss) for those who want MySQL++ changes to appear in their feed reader. You can also [subscribe to email notifications](/subscribe) for various events: check-ins, wiki edits, forum postings, etc.
Z a8181f1727012f954acd4ea0d045f167