How to connect FiveWin with Mysql

sajith
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India
Contact:

How to connect FiveWin with Mysql

Post by sajith »

Plz send the code to connect my application with mysql
User avatar
richard-service
Posts: 583
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Contact:

Re: How to connect FiveWin with Mysql

Post by richard-service »

Hi

You can use TMySQL to connect MySQL and free.
Please search it in this Forum.

Regards,

Richard
Regards,

Richard

Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: How to connect FiveWin with Mysql

Post by anserkk »

Dear Mr.Shuming Wang

Thanks for the samples and class.

Can you paste here a copy of the CLASS TMySqlServer

The Prg TMySql which you have posted above contains only the CLASS TMySQLRow

Regards

Anser
User avatar
Daniel Garcia-Gil
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita
Contact:

Re: How to connect FiveWin with Mysql

Post by Daniel Garcia-Gil »

hello anserkk...

The prg TMYsql have

TMySqlRow ( 64 )
TmySqlQuery ( 290 )
TMySQLTable ( 1159 )
TMySQLServer ( 1590 )
our best documentation is the source code
Isla de Margarita Venezuela.
danielgarciagil@gmail.com
http://tdolphin.blogspot.com/
https://www.dropbox.com/referrals/NTI5N ... rc=global9
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: How to connect FiveWin with Mysql

Post by anserkk »

Dear MR.Daniel,

You are right, it is there. I am so sorry :oops:

Regards

Anser
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: How to connect FiveWin with Mysql

Post by Marc Vanzegbroeck »

Hi,

In's maybe a stuppid question, but is it possible to use MySQL and still use the same commands as for DBF-file (APPE, REPL , INDEX,...) or do we need to use SQL commands?

Thanks,
Marc
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: How to connect FiveWin with Mysql

Post by Rick Lipkin »

Marc

ADORdd has a lot of promise and was really my first stepping stone into working with the Enterprise databases .. you can download it from these forums ..

ADORdd works like any other rdd and you can use all your .dbf commands, .. take a look, read the code and kick the tires some.

Rick Lipkin
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: How to connect FiveWin with Mysql

Post by Marc Vanzegbroeck »

Thanks Rick,

I just downloaded ADORDD and will now test it.

Regards,
Marc
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to connect FiveWin with Mysql

Post by dutch »

Dear All,

I donwload ADORDD.ZIP and try MYSQL1.PRG and It show the error as following;

Code: Select all

Application
===========
   Path and name: D:\FWH\samples\mysql1.exe (32 bits)
   Size: 1,442,816 bytes
   Time from start: 0 hours 0 mins 0 secs 
   Error occurred at: 02/23/09, 01:01:13
   Error description: Error ADODB.Connection/0  S_OK: OPEN
   Args:
     [   1] = C   DRIVER={MySQL ODBC 3.51 Driver};server=www.freesql.org;database=test00;uid=myuser;pwd=mypass

Stack Calls
===========
   Called from:  => TOLEAUTO:OPEN(0)
   Called from: adordd.prg => ADO_OPEN(241)
   Called from:  => DBUSEAREA(0)
   Called from: mysql1.prg => MAIN(9)
 
I have installed ODBC MySql 5.1 and then what do I config it?

Image

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: How to connect FiveWin with Mysql

Post by ShumingWang »

Hi,
Tmysql without any setting , directly use.
Only link libmysql.lib (import from libmysql.dll ) and app.exe running time with libmysql.dll .
Shuming Wang
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: How to connect FiveWin with Mysql

Post by anserkk »

Dear Mr.Dutch,
I have installed ODBC MySql 5.1 and then what do I config it?
Error description: Error ADODB.Connection/0 S_OK: OPEN
Args:
[1] = C DRIVER={MySQL ODBC 3.51 Driver};server=www.freesql.org;database=test00;uid=myuser;pwd=mypass.

I have not tried ADORDD but used ADO
If you have the option to specify the connections string then I think you should use
Driver={MySQL ODBC 5.1 Driver} instead of {MySQL ODBC 3.51 Driver}

Or other alternative is uninstall MySQL ODBC ver 5.1 and Install 3.51

Regards

Anser
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: How to connect FiveWin with Mysql

Post by Marc Vanzegbroeck »

Hi,

I'm still trying to install MySQL. 5.1 Is it possible to installed it on a VMWARE XP-Pro? I allway's get 'Error 0' at the end of configuring the database when it wants to start the service.

Regards,
Marc
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How to connect FiveWin with Mysql

Post by Antonio Linares »

Mark,

You could install Linux on vmware, as it may be much easier to set mysql, apache, etc. on Linux
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How to connect FiveWin with Mysql

Post by Antonio Linares »

Dutch,

Please try it with these connections values:

server=SQL06.FREEMYSQL.NET;database=fwppc;uid=fivetech;pwd=fivewin

the older one seems to be no longer available
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply