ITS ➤ Docs


Instructions for connecting MATLAB with a mySQL database on Linux:
ITEMACTION
mySQL-JAVA
connector
  1. Download: http://dev.mysql.com/downloads/connector/j/
  2. FILE: [path]/mysql-connector-java-5.1.36/mysql-connector-java-5.1.36-bin.jar
MATLAB
  1. Download: software.oit.gatech.edu
  2. create if necessary and set permissons for: /mnt/disk
    mkdir /mnt/disk
    chmod 775 /mnt/disk/
  3. apt-get install mesa-utils
  4. mount .iso: sudo mount R2022a_Linux.iso /mnt/disk -t iso9660 -o loop
  5. install MATLAB: /mnt/disk/install
  6. add MATLAB link: cd /
    ln -s /usr/local/MATLAB/R2022a/bin/matlab /matlabR2022a
  7. Open: $MATLAB_PATH/toolbox/local/classpath.txt
  8. Append to classpath.txt: $FULL_PATH/mysql-connector-java-5.1.36/mysql-connector-java-5.1.36-bin.jar
  9. restart MATLAB
Test
  1. open MATLAB cd /
    ./matlab
  2. mysql.m