Short answer: you cannot, at least not directly.
Cocoa Framework does not have a database driver, generic or otherwise (regardless of CoreData). To connect to the mysql database, you need to use aptly named libmysqlclient . This library is not included in Xcode, and therefore it will need to be downloaded (and possibly built) separately: you can get it here .
You may have to redistribute the library with your application, and you may experience license problems.
Edit: It seems that the library for connecting to the mysql database should be installed along with the installation of the MySQL server. If the application will need to be run only on machines on which MySQL is installed, you may be referred to this.
source share