MySQL Connectors and APIs

Connectors and APIs

MySQL Connectors provide connectivity to the MySQL server for client programs and APIs provide low-level access to the MySQL protocol and resources. You can connect and execute MySQL statements from another language or environment, including ODBC, Python, Perl, Ruby, PHP, Java (JDBC), and native C and embedded MySQL instances through connectors and the APIs

What is a Driver?
A driver is a piece of software designed to communicate with a particular database server. The driver may also call a library, such as the ‘MySQL Client Library’ or the ‘MySQL Native Driver’. These libraries implement the low-level protocol used to communicate with the database server.

What is a Connector?
A connector refers to a piece of software that allows your application to connect to the MySQL database server. MySQL provides connectors for a variety of languages, including Python, Perl, Ruby, PHP, Java (JDBC), C etc.

What is an API?
API, an abbreviation of application program interface, is a set of programming instructions (through classes, methods, functions and variables) and standards for accessing a web-based software application or web tool.
APIs can be procedural or object-oriented. With a procedural API you call functions to carry out tasks, with the object-oriented API, you instantiate classes and then call methods on the resulting objects. Of the two the second one is usually the preferred interface, as it is more modern and leads to better-organized code.

List of MySQL Connectors

  • ODBC/Connector : It provides driver support for connecting (Windows, Unix, and Mac OS X platforms.) to MySQL using the Open Database Connectivity (ODBC) API.
  • .Net/Connector : It provides support to create .NET applications that connect to MySQL.
  • J/Connector : It provides driver support for connecting to MySQL from Java applications using Java Database Connectivity (JDBC) API.
  • Python/Connector : It provides driver support for connecting to MySQL from Python applications using Python DB API version 2.0.
  • C++/Connector : is a standalone replacement for the MySQL Client Library (libMySQLclient), to be used for C applications.

Note : libMySQLclient is included in MySQL distributions and in MySQL Connector/C distributions.

List of Third-Party MySQL APIs

LanguageAPIType 
AdaGNU Ada MySQL BindingslibMySQLclient MySQL Bindings for GNU Ada
CC APIlibMySQLclient Section 23.8, “MySQL C API”.
CConnector/CReplacement forlibMySQLclient MySQL Connector/C Developer Guide.
C++Connector/C++libMySQLclient MySQL Connector/C++ Developer Guide.
 MySQL++libMySQLclient MySQL++ Web site.
 MySQL wrappedlibMySQLclient MySQL wrapped.
CocoaMySQL-CocoalibMySQLclientCompatible with the Objective-C Cocoa environment.  http://MySQL-cocoa.sourceforge.net/
DMySQL for DlibMySQLclient MySQL for D.
EiffelEiffel MySQLlibMySQLclient Section 23.14, “MySQL Eiffel Wrapper”.
Erlangerlang-MySQL-driverlibMySQLclient erlang-MySQL-driver.
HaskellHaskell MySQL BindingsNative Driver Brian O’Sullivan’s pure Haskell MySQL bindings.
 hsql-MySQLlibMySQLclient MySQL driver for Haskell .
Java/JDBCConnector/JNative Driver MySQL Connector/J Developer Guide.
KayaMyDBlibMySQLclient MyDB.
LuaLuaSQLlibMySQLclient LuaSQL.
.NET/MonoConnector/NetNative Driver MySQL Connector/Net Developer Guide.
Objective CamlOBjective Caml MySQL BindingslibMySQLclient MySQL Bindings for Objective Caml.
OctaveDatabase bindings for GNU OctavelibMySQLclient Database bindings for GNU Octave.
ODBCConnector/ODBClibMySQLclient MySQL Connector/ODBC Developer Guide.
PerlDBI/DBD::MySQLlibMySQLclient Section 23.10, “MySQL Perl API”.
 Net::MySQLNative Driver Net::MySQL at CPAN
PHPMySQL, ext/MySQLinterface (deprecated)libMySQLclientOriginal MySQL API (MySQL).
 MySQLi,ext/MySQLiinterfacelibMySQLclient MySQL Improved Extension (MySQLi).
 PDO_MySQLlibMySQLclient MySQL Functions (PDO_MySQL) (MySQL (PDO)).
 PDO MySQLndNative Driver 
PythonConnector/PythonNative Driver MySQL Connector/Python Developer Guide.
 MySQLdblibMySQLclientMySQL Python API
RubyMySQL/RubylibMySQLclientUses libMySQLclient.  The MySQL/Ruby API.
 Ruby/MySQLNative Driver Section 23.12.2, “The Ruby/MySQL API”.
SchemeMyscshlibMySQLclient Myscsh.
SPLsql_MySQLlibMySQLclient sql_MySQL for SPL.

List of MySQL Connector and Server versions

ConnectorConnector versionMySQL Server version
Connector/C6.1.0 GA5.6, 5.5, 5.1, 5.0, 4.1
Connector/C++1.0.5 GA5.6, 5.5, 5.1
Connector/J5.1.85.6, 5.5, 5.1, 5.0, 4.1
Connector/Net6.55.6, 5.5, 5.1, 5.0
Connector/Net6.45.6, 5.5, 5.1, 5.0
Connector/Net6.35.6, 5.5, 5.1, 5.0
Connector/Net6.2 (No longer supported)5.6, 5.5, 5.1, 5.0
Connector/Net6.1 (No longer supported)5.6, 5.5, 5.1, 5.0
Connector/Net6.0 (No longer supported)5.6, 5.5, 5.1, 5.0
Connector/Net5.2 (No longer supported)5.6, 5.5, 5.1, 5.0
Connector/Net1.0 (No longer supported)5.0, 4.0
Connector/ODBC5.15.6, 5.5, 5.1, 5.0, 4.1.1+
Connector/ODBC3.51 (Unicode not supported)5.6, 5.5, 5.1, 5.0, 4.1

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *