Skip to content

A MySQL library ready for use in iOS and Mac.

License

Notifications You must be signed in to change notification settings

Kent-Liu/mysql-connector-c

 
 

Repository files navigation

mysql-connector-c

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

Installation

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.

About

A MySQL library ready for use in iOS and Mac.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 67.3%
  • C++ 25.2%
  • Pascal 5.9%
  • Other 1.6%