MySQL API for MATLAB with support for BLOB objects
MYM - Interact with a MySQL database server Copyright 2005, EPFL (Yannick Maret)
Copyright notice: this code is a heavily modified version of the original work of Robert Almgren from University of Toronto sourceforge project
See mym.m for further documentation.
- Create an
.env
with desired development environment values e.g.
MATLAB_USER=raphael
MATLAB_LICENSE="#\ BEGIN----...---------END" # For image usage instructions see https://github.com/guzman-raphael/matlab, https://hub.docker.com/r/raphaelguzman/matlab
MATLAB_VERSION=R2018b
MATLAB_HOSTID=XX:XX:XX:XX:XX:XX
MATLAB_UID=1000
MATLAB_GID=1000
MYSQL_TAG=5.7
cp local-docker-compose.yml docker-compose.yml
docker-compose up
(Note configuredJUPYTER_PASSWORD
)- Select a means of running MATLAB e.g. Jupyter Notebook, GUI, or Terminal (see bottom)
- Run desired tests. Some examples are as follows:
Use Case | MATLAB Code |
---|---|
Run all tests | run(Main) |
Run one class of tests | run(TestTls) |
Run one specific test | runtests('TestTls/TestTls_testInsecureConn') |
Run tests based on test name | import matlab.unittest.TestSuite; import matlab.unittest.selectors.HasName; import matlab.unittest.constraints.ContainsSubstring; suite = TestSuite.fromClass(?Main, ... HasName(ContainsSubstring('Conn'))); run(suite) |
- Navigate to
localhost:8888
- Input Jupyter password
- Launch a notebook i.e.
New > MATLAB
- Shell into
mym_app_1
i.e.docker exec -it mym_app_1 bash
- Launch Matlab by runnning command
matlab
- Shell into
mym_app_1
i.e.docker exec -it mym_app_1 bash
- Launch Matlab with no GUI by runnning command
matlab -nodisplay
- Install GHToolbox using using an appropriate method in https://github.com/datajoint/GHToolbox
- run:
ghtb.install('datajoint/mym')
- Utilize MATLAB built-in GUI i.e. Top Ribbon -> Add-Ons -> Get Add-Ons
- Search and Select
mym
- Select Add from GitHub
- Utilize MATLAB built-in GUI i.e. Top Ribbon -> Add-Ons -> Get Add-Ons
- Search and Select
mym
- Select Download from GitHub
- Save
mym.mltbx
locally - Navigate in MATLAB tree browser to saved toolbox file
- Right-Click and Select Install
- Select Install
- Download
mym.mltbx
locally - Navigate in MATLAB tree browser to saved toolbox file
- Right-Click and Select Install
- Select Install