FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour What is the best of MySql (lib or class) TMySql, TDolphin
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sat Feb 25, 2012 12:32 AM

Dear All,

I would like to know, the best way to move to MySql?
TMySql (LibMySql)
TDolphin
ADO
etc.

Thanks for all idea and recommendation.

Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sat Feb 25, 2012 02:42 AM

We use Tmysql.prg since 2004, simple,fast,stable!
Only need link libmysql.lib (export from libmysql.dll by tlib.exe) ,mysql.lib (tmysql.prg mysql.c ),running time need libmysql.dll, no other setting on windows nor exe .
Samples : http://www.xtech.com.cn/down/sample1.prg
http://www.xtech.com.cn/down/sample2.prg

Regards!
Shuming wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sat Feb 25, 2012 10:59 AM

I use ADO because it is engine aware (ie. I can change database engine without changing my code, only the connection string).

EMG

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sat Feb 25, 2012 02:00 PM

I like ADO as well for the very same reason Enrico noted.. and if you are using ado you can specify the cursor location. ( local .. very fast )

Unfortunately ADO for MySql is not native and you have to download ( or pay for .. last time I looked ) a run-time client. If you have plans to distribute your app with ADO and have many computers .. you have a distribution problem.

On the flip side, you can use the MySql library that you can ( conveniently ) link into your app ( much like advantage database ) but the syntax is nothing like the standard ADO methodology which is consistent with Sql Server, Oracle, IBM DB2, Access ..

Pros and cons both ways.

Rick Lipkin

Posts: 476
Joined: Sat Feb 03, 2007 06:36 AM
Re: What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sat Feb 25, 2012 02:46 PM

I use Eagle1 from Manu Exposito.
It's very easy and very fast for work with MySQL.

Best regards.

Carlos.

Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Re: What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sat Feb 25, 2012 05:19 PM

Enrico,
What about the connection string with ADO .
Could you post a sample .

Should we install an ODBC driver and define something in the control pannel ??

Thanks .

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sat Feb 25, 2012 06:06 PM

Jack

Here is some info

MySQL OLEDB
Type OLE DB Provider
Usage Provider=MySQLProv
Manufacturer MySQL
Set example values »

More about this provider »
Standard
Provider=MySQLProv;Data Source=mydb;User Id=myUsername;Password=myPassword;

http://connectionstrings.com/mysql

You still have to find the oledb client ..

Rick Lipkin

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sat Feb 25, 2012 06:34 PM
Jack wrote:Enrico,
What about the connection string with ADO .
Could you post a sample .


This is what I'm using:

Code (fw): Select all Collapse
Driver={MySQL ODBC 5.1 Driver};Server=IP address;Database=database name;UID=userid;Password=password;Option=133121


Jack wrote:Should we install an ODBC driver and define something in the control pannel ??


For MySQL you have to install the ODBC connector:

http://www.mysql.it/downloads/connector/odbc

EMG
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sat Feb 25, 2012 06:45 PM

Hello,

Enrico, where can I find more info about ADO and Harbour?.

Is there a book or e-book?.

Thanks. I am lost

FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sat Feb 25, 2012 06:56 PM
ADO is not tied to a specifical compiler. It's one of the Microsoft framework for connecting to a database engine. You can find the ADO documentation on MSDN:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms675532(v=vs.85).aspx

Try also:

http://www.w3schools.com/ado/default.asp

EMG
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sat Feb 25, 2012 07:42 PM
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sun Jul 08, 2012 02:44 PM
dutch wrote:Dear All,

I would like to know, the best way to move to MySql?
TMySql (LibMySql)
TDolphin
ADO
etc.

Thanks for all idea and recommendation.

Regards,
Dutch


Where is TMySql?
Posts: 13
Joined: Mon Apr 23, 2012 07:43 AM
Re: What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sun Jul 08, 2012 04:10 PM

TDolphin,

Simples, Fast and Easy to use. better solucion for MySQL.

Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sun Jul 08, 2012 04:13 PM

Friends:

My opinion:

For a new application: ADO, you need to learn 7 commands, yes only seven commands.
If you want move a DBF application to MySql application: TMySql or TDolphin, are the faster way to move.

Regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: What is the best of MySql (lib or class) TMySql, TDolphin
Posted: Sun Jul 08, 2012 09:32 PM

Cannot build dolphin library

-----------------------------------------------------------------------

Building dolphin.lib

C COMPILER :BCC

PRG COMPILER :XHARBOUR

-----------------------------------------------------------------------

Compiling .\source\prg\tdolpexp.prg
Compiling .\obj\XHARBOUR\BCC\tdolpexp.c
The system cannot find the path specified.
win-make: *** [.\obj\XHARBOUR\BCC\tdolpexp.obj] Error 1
rm .\obj\XHARBOUR\BCC\tdolpexp.c