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 function needs the mysqlclient library (public domain, included in
the MySQL distribution). 

SUPPORTED SYSTEMS

The interface has been tested on Linux with Matlab 6 and on HP-UX on
with Matlab 5 and 6, but it probably works on other UNIX variants with
minor modifications in the Makefile.

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.

To use the interface on Linux with Matlab 5, you need to have the
libmysqlclient library compatible with libc5.
On some cases you may need to explicitly add the libgcc-library to the 
system libraries. Find the correct name with "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

AUTHORS AND COPYRIGHT

The original interface was generated by Kimmo Uutela
(Kimmo.Uutela@iki.fi, http://www.iki.fi/~kuutela/), and modifications
have been contributed by
John Fisher <jfisher@are.berkeley.edu>
Brian Shand <bshand@dip.ee.uct.ac.za>
Guido Dietz <Guido.Dietz@dlr.de>

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