GENERAL

These files generate Matlab MEX-functions, that can be used to access
the MySQL database (by T.c.X. DataKonsultantAB, http://www.tcx.se/)
from Matlab (by MathWorks, http://www.mathworks.com/).

The interface was generated by Kimmo Uutela 
(Kimmo.Uutela@hut.fi, http://boojum.hut.fi/~kuutela/), and needs the
mysqlclient library (public domain, included in the MySQL
distribution).

This program can be distributed freely for non-commercial use.

The latest version is available from
http://boojum.hut.fi/~kuutela/mysqlmex.html

SUPPORTED SYSTEMS

I have used this interface on Linux and HP-UX, but it probably works
on other UNIX variants with minor modifications in the Makefile

The Matlab version should be 5.0 or greater.

INSTALLATION

You should have Matlab and MySQL already installed. 

Copy the correct Makefile version:
  cp Makefile.hpux Makefile          # for HP-UX
  cp Makefile.linux Makefile         # for Linux

Check the library locations and destination directory on the first
lines in the Makefile. 

Compile the Mex-file
  gmake

Test the library
  gmake test

Install the files
  gmake install

POSSIBLE INSTALLATION PROBLEMS

The mysqlclient library should be compiled as position-independent
code. on HPUX this is done with compilation flag +z and on Linux with
-fPIC.

On Linux, I have to explicitly add the libgcc-library for some reason.
The file has probably some other name in your distribution.
Try "locate libgcc.a".

USING THE COMMANDS

Two Matlab commands are installed:
MYSQL makes general SQL queries, 
SQLINSERT inserts records into the database

Use "help mysql" and "help sqlinsert" to get more information

