What is the best of MySql (lib or class) TMySql, TDolphin

Post Reply
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

What is the best of MySql (lib or class) TMySql, TDolphin

Post by dutch »

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 19.01 / 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)
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by ShumingWang »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by Enrico Maria Giordano »

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

EMG
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by Rick Lipkin »

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
csincuir
Posts: 305
Joined: Sat Feb 03, 2007 6:36 am
Location: Guatemala
Contact:

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by csincuir »

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

Best regards.

Carlos.
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by Jack »

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 .
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by Rick Lipkin »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by Enrico Maria Giordano »

Jack wrote:Enrico,
What about the connection string with ADO .
Could you post a sample .
This is what I'm using:

Code: Select all

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
User avatar
ukservice
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by ukservice »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by Enrico Maria Giordano »

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 ... s.85).aspx

Try also:

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

EMG
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by Rick Lipkin »

mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by mosh1 »

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?
DevBr
Posts: 13
Joined: Mon Apr 23, 2012 7:43 am

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by DevBr »

TDolphin,

Simples, Fast and Easy to use. better solucion for MySQL.
User avatar
Armando
Posts: 2479
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México
Contact:

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by Armando »

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
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by mosh1 »

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
Post Reply