A MySQL library ready for use in iOS and Mac.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
Project Files/mysql-connector-c Updates library to 6.1.6 source Mar 9, 2016
Sources Updates library to 6.1.6 source Mar 9, 2016
.gitignore Updates library to 6.1.6 source Mar 9, 2016
LICENSE Adds readme and license Jun 19, 2014
README.md Update README Mar 9, 2016
mysql-connector-c.podspec Updates podspec Mar 9, 2016



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.