Platform independent MySQL database solution with blob support.
Updated 22 Jun 2012

View License

Platform independent MySQL database solution with blob support.

Only requires MATLAB >= 2008a (to support classes). Note: the code could be refactored to work with MATLAB < 2008a. Doesn't require any MathWorks toolboxes.

Cite As

Jonathan Karr (2024). queryMySQL (https://www.mathworks.com/matlabcentral/fileexchange/28237-querymysql), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Access a MySQL database

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Adding email for contributor Matteo Broggi

1) Now returned bigint as (u)int64 rather than double -- thanks Pierre Martineau for the suggestion.
2) Now creating database connection with using an external java wrapper -- thanks Matteo Broggi.

Fixed support for date, time, datetime, and tiny data types.

Adding definitions of example tables and stored procedures. Properly casting returned blobs -- thanks to Jonathon parish. Added support for column names with non-alphanumeric characters -- thanks to Hachi Manzur.

Now uses MATLAB classes

Corrected javaaddpath for MySQLLoader class in example usage in queryMySQL.m

Added tags.