Latest 2.0.0
License MIT
Platforms ios 5.0, osx 10.7

This library is the MySQL client library (version 6.1.6), built for iOS and Mac. The original source code built pretty easily on Mac, but there were various small tweaks to get it running on iOS, so I’m sharing it! This library has i386, x86_64, armv7, and arm64 architectures built into it.

You can read all about the C api provided at the MySQL documentation site


mysql-connector-c can be installed using CocoaPods. Add the following declaration into your Podfile:

pod ‘mysql-connector-c’, ‘~> 2.0’

You can also copy the files from the Sources directory into your project if you’re not using CocoaPods.

Sample Project

Under Project Files there is a sample project demonstrating the libraries use. Most of the details you’ll want are on the MySQL documenation site, though.

The sample project simply lists the tables within a database. Update the #define statements at the top of ViewController.m to point to a database you have access to in order to see the results.

Latest podspec

    "name": "mysql-connector-c",
    "version": "2.0.0",
    "summary": "A MySQL library that works on iOS and Mac.",
    "description": "This is a static library for connecting to MySQL databases natively using C.nnI found it difficult to find a current MySQL database adapter. Most either didn'tnsupport iOS, or only supported old architectures. This library supportsni386, x86_64, armv7, armv7s, and arm64.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "James Richard": "[email protected]"
    "social_media_url": "",
    "platforms": {
        "ios": "5.0",
        "osx": "10.7"
    "source": {
        "git": "",
        "tag": "v2.0.0"
    "source_files": "Sources/include/**/*.{h}",
    "vendored_libraries": "Sources/libmysqlclient.a",
    "libraries": "c++",
    "requires_arc": false

Pin It on Pinterest

Share This