diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 8fa7c8b402..d71690866d 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +2001-11-22 15:11 GMT+1 Maurilio Longo + * contrib/mysql/readme.txt + * little changes + 2001-11-22 19:55 GMT+0700 Andi Jahja * include/hbapi.h + add declaration char * hb_strncpyUpperTrim() diff --git a/harbour/contrib/mysql/readme.txt b/harbour/contrib/mysql/readme.txt index 9fb25358d9..758eb55df6 100644 --- a/harbour/contrib/mysql/readme.txt +++ b/harbour/contrib/mysql/readme.txt @@ -2,9 +2,9 @@ * $Id$ */ - ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ - ³ 29/october/2001 - Harbour MySQL access classes - readme file ³ - ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ + +---------------------------------------------------------------+ + | 22/november/2001 - Harbour MySQL access classes - readme file | + +---------------------------------------------------------------+ This is work in progress, so it has to be fully tested and needs a few more methods to cover MySQL possibilities. @@ -20,42 +20,44 @@ test.prg : a little test program which wont work for you :-) since it uses a provided. Use it as a small tutorial of tmysql.prg provided functions. Makefile : my makefile for OS/2 gcc, you'll surely need to change it to adapt to your needs/platform. makefile.bc, -make_b32.bat: batch file and makefile to build tmysql.lib on win32 +make_b32.bat: batch file and makefile to build mysql.lib on win32 You will also need all .h files from include subdir of your installed MySQL server, at a bare minimum they are: mysql.h, mysql_com.h, mysql_version.h -(under OS/2 with OS/2 port of MySql you need to use the one from 3.21.33b build which is the only one with +(under OS/2 with OS/2 port of MySql you need to use the ones from 3.21.33b build which is the only one with a single threaded libmysqlclient.a client library and works ok even with latest MySQL/2 availble). To build this library on win32 (using freely available Borland C++ compiler) you need to follow these steps: -1) go to www.mysql.com and download any version you like of mysql. Install - it. Now you have an include subdir with .h files with the same version - number as your mysql.dll. +1) go to www.mysql.com and download any version you like of mysql. + So far I've tested only 3.x versions of MySQL. Install it. + Now you have an include subdir with .h files with the same version + number as your libmysql.dll. This is very important. You need to use .h files from the package you install. -2) Replace inside \contrib\mysql all .h file with the ones from mysql - include subdir. +2) Copy inside \contrib\mysql all .h files from mysql include subdir. -3) Do a "make install" inside \contrib\mysql to build mysql.lib. +3) Do a "make_b32" inside \contrib\mysql to build mysql.lib. 4) Use implib from borland free bcc to create an import library for - mysql.dll and call it mysqldll.lib + libmysql.dll and call it libmysql.lib -5) Link mysql.lib and mysqldll.lib to your harbour program (you can try to + implib libmysql.lib libmysql.dll + +5) Link mysql.lib and libmysql.lib to your harbour program (you can try to recompile dbf2mysql inside \contrib\mysql just to test everything) and - be sure to have mysql.dll on your path. + be sure to have libmysql.dll on your path. - ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ - ³ Available Classes ³ - ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ + +---------------------+ + | Available Classes | + +---------------------+ tmysql.prg defines four classes: