On a mac (Mountain Lion), after a major upgrade to GDAL (1.10) and related frameworks from KyngChaos page, QGIS 2.0 doesn't show any MySQL connector:
Add Vector > Database > …
The driver doesn't appear neither in the terminal running the "ogr2ogr –formats" command.
I read (link), at the very end of the post, that this feature has been removed from QGIS 2.0. Anyway, it appears to me that it depends on GDAL/OGR: it seems that the framework has been build without MySQL support.
Best Answer
It doesn't look like it is included in the most recent GDAL-Complete framework. Please file a request with kyngchaos.com.
In the meantime, if you don't mind trying it yourself, you can attempt to build a shared plugin for GDAL 1.10, install it, and see if it works with your data source:
Ensure you have XCode and/or its command line tools installed.
Download and install latest MySQL Community Server (installs to
/usr/local/mysql
).Download the GDAL source and un-archive to folder, e.g.
gdal-1.10.1
, and enter it.Edit a single source file and comment-out unsupported symbols in MySQL 5.6+ client
ogr/ogrsf_frmts/mysql/ogrmysqldatasource.cpp @ line 130
Build shared plugin, in Terminal:
Verify plugin:
Launch QGIS and verify plugin loading in PyQGIS console:
You should be able to connect to a MySQL data source via
Add Vector > Database > ...
now.Please note, I don't have any geospatial MySQL data sources, so was unable to test the plugin I built.