install/Linux/MySQL
This document is to explain how to install MySQL binding library.
Supported MySQL database version
This library supports only MySQL 5.0.
Get the source code
Check out from subversion repository at 'https://cleanoptenv.svn.sourceforge.net/svnroot/cleanoptenv/trunk/DB/MySQL' to '~/lib/clean2.2/MySQL.'
Build object files
Change directory to '~/lib/clean2.2/MySQL/Foreign' and type 'make.' It will produce the following file.
- MySQL/Clean System Files/clean_mysql.o
Modify environment variables
Append the library directory to 'CLEANPATH' environment variable.
How to build a program with MySQL
Add the following lines in the link option file.
-lmysqlclient -lz
If the link option file is 'link.lo' then use the following command to compile the program.
clm -sl link MainModule -o Target
