How to connect FiveWin with Mysql

How to connect FiveWin with Mysql

Postby sajith » Fri Feb 20, 2009 1:50 pm

Plz send the code to connect my application with mysql
sajith
 
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India

Re: How to connect FiveWin with Mysql

Postby richard-service » Fri Feb 20, 2009 3:19 pm

Hi

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

Regards,

Richard
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: How to connect FiveWin with Mysql

Postby ShumingWang » Sat Feb 21, 2009 1:49 am

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: How to connect FiveWin with Mysql

Postby anserkk » Sat Feb 21, 2009 5:26 am

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
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: How to connect FiveWin with Mysql

Postby Daniel Garcia-Gil » Sat Feb 21, 2009 5:53 am

hello anserkk...

The prg TMYsql have

TMySqlRow ( 64 )
TmySqlQuery ( 290 )
TMySQLTable ( 1159 )
TMySQLServer ( 1590 )
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: How to connect FiveWin with Mysql

Postby anserkk » Sat Feb 21, 2009 6:30 am

Dear MR.Daniel,

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

Regards

Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: How to connect FiveWin with Mysql

Postby Marc Vanzegbroeck » Sun Feb 22, 2009 1:42 pm

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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: How to connect FiveWin with Mysql

Postby Rick Lipkin » Sun Feb 22, 2009 1:47 pm

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

Re: How to connect FiveWin with Mysql

Postby Marc Vanzegbroeck » Sun Feb 22, 2009 2:08 pm

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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: How to connect FiveWin with Mysql

Postby dutch » Sun Feb 22, 2009 6:03 pm

Dear All,

I donwload ADORDD.ZIP and try MYSQL1.PRG and It show the error as following;
Code: Select all  Expand view

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)
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to connect FiveWin with Mysql

Postby ShumingWang » Mon Feb 23, 2009 2:03 am

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
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: How to connect FiveWin with Mysql

Postby anserkk » Mon Feb 23, 2009 4:43 am

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
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: How to connect FiveWin with Mysql

Postby Marc Vanzegbroeck » Mon Feb 23, 2009 7:06 am

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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: How to connect FiveWin with Mysql

Postby Antonio Linares » Mon Feb 23, 2009 11:52 am

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: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to connect FiveWin with Mysql

Postby Antonio Linares » Mon Feb 23, 2009 11:54 am

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 68 guests