Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote View with MySQL Connector 5.2 crash

Status
Not open for further replies.

vhad

Programmer
May 27, 2001
26
ID
My application crash when creating remote view / cursoradapter with MySQL Connector 5.2
SQL Pass Through works fine using the connector.

I am Using
- VFP 9.0 SP2
- Windows XP Pro
- MySQL Connector 5.2.6

Any solution to this problem?

Thanks in Advance
 
Thanks Olaf,

Yes. I do install the 32bit driver.

It works fine when I use SQLEXEC command to get data.
But VFP crash when I create RemoteView using that MySQL 5.2 connector.
Tried to use UNICODE and ANSI version. Both crash.

It works OK with MySQL 5.1 connector.

Regards,
 
If I am asking the obvious, I apologize in advance.

But just because it wasn't specifically mentioned and just to be sure....

When you installed the 32-bit ODBC driver you installed it with:
C:\Windows\SysWOW64\odbcad32.exe

And within the VFP Database that contains your Remote View, you have defined a Database Connection using that same ODBC driver (for example named: MySQLConnection)?

And, lastly, when you created your VFP Remote View you did something like the following so that your VFP Database Connection is specified:
Code:
   CREATE SQL VIEW MySQLDataView;
   REMOTE CONNECTION "MySQLConnection";
   SHARE AS ;
   SELECT * ;
   FROM MySQLDataTable ;
   WHERE <whatever>

Good Luck,
JRB-Bldr
 
Thanks JRN-Bldr

I am using Windows XP Pro.
And I created the remote view using wizard.

Here is what I did :

I get the ODBC installer from MYSQL official web-site.
mysql-connector-odbc-5.2.6-win32.msi

After I install the driver installed on the ODBC Data Source Administrator are :
- MySQL ODBC 5.2 ANSI Driver
- MySQL ODBC 5.2 Unicode Driver

Then I create a UserDSN with that driver. And name it 'test'

Then in VFP I create a new database.

And then create a remote view using Wizard :
- Step 1 : Data Source : ODBC data sources, and choose 'test' DSN
- Step 2 : I choose a table and fields
- And Click Finish, with option save remote view

This is where the crash occurs.

Regards,




 
>crash
What's the error? Is there any? What happens and/or is displayed?
What are field types?

Bye, Olaf.
 
I just tried the driver myself. It simply doesn't work with a DSN.
Just choosing a table crashes, I don't even get to see a field list.

I tried several options and also using a connection string.

To make it short: It doesn't work.
Also see:
So either only use it with sql passthrough or use 5.1 drivers.

Bye, Olaf.
 
Thanks Olaf,

Yes. I think I have to live with it.
There is no workaround for this problem.

Thanks for your effort.

Regards,
 
At the time I asked this question the last version of MySQL Connector was 5.2.6 and 5.3.0 Alpha. Both crash my VFP.
I was very sad.

Today, I tried with the last version of MySQL Connector is 5.3.2.
Surprisingly, the problem was disappear. Bug fixed.

Now I am happy again.

Regards,
 
Glad to hear you are happy again, Vhad. Thanks for letting us know. It's always good to hear of problems being solved, if only for the benefit of others who come up against the same issues.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top