MySQL Connection

This is a discussion on MySQL Connection within the ODBC forums in Framework and Interface Programming category; I have an application in VB6 using DataEnvironment object to specify the connection to a different databases. Up to now I successfully made connections to a Access, Oracle and SQL Server databases. Now I need to make a connection to a MySQL and it return a "Catastrofic failure" message. I am using the Connect/ODBC 3.51 from MySQL. Does somebody out there have an idea how can I make it work. What could I b missing? Thanks,...

Go Back   Application Development Forum > Framework and Interface Programming > ODBC

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-22-2007, 05:34 PM
=?Utf-8?B?TG91aXM=?=
Guest
 
Default MySQL Connection

I have an application in VB6 using DataEnvironment object to specify the
connection to a different databases.
Up to now I successfully made connections to a Access, Oracle and SQL Server
databases.
Now I need to make a connection to a MySQL and it return a "Catastrofic
failure" message. I am using the Connect/ODBC 3.51 from MySQL.
Does somebody out there have an idea how can I make it work. What could I b
missing?
Thanks,
Reply With Quote
  #2  
Old 10-23-2007, 10:07 AM
Ralph
Guest
 
Default Re: MySQL Connection


"Louis" <Louis@discussions.microsoft.com> wrote in message
news:BE365D2B-9C7A-49CC-B714-F95FCECF0F18@microsoft.com...
> I have an application in VB6 using DataEnvironment object to specify the
> connection to a different databases.
> Up to now I successfully made connections to a Access, Oracle and SQL

Server
> databases.
> Now I need to make a connection to a MySQL and it return a "Catastrofic
> failure" message. I am using the Connect/ODBC 3.51 from MySQL.
> Does somebody out there have an idea how can I make it work. What could I

b
> missing?
> Thanks,


Are you sure your connection string is correct?
http://www.connectionstrings.com/?carrier=mysql

you may need to post some code.

-ralph




Reply With Quote
  #3  
Old 10-23-2007, 12:55 PM
=?Utf-8?B?TG91aXM=?=
Guest
 
Default Re: MySQL Connection

Thanks for the link.
When I specify the connection by code I can reach the tables, but cannot
when I tried specifying the provider through the DataEnvironment object.

"Ralph" wrote:

>
> "Louis" <Louis@discussions.microsoft.com> wrote in message
> news:BE365D2B-9C7A-49CC-B714-F95FCECF0F18@microsoft.com...
> > I have an application in VB6 using DataEnvironment object to specify the
> > connection to a different databases.
> > Up to now I successfully made connections to a Access, Oracle and SQL

> Server
> > databases.
> > Now I need to make a connection to a MySQL and it return a "Catastrofic
> > failure" message. I am using the Connect/ODBC 3.51 from MySQL.
> > Does somebody out there have an idea how can I make it work. What could I

> b
> > missing?
> > Thanks,

>
> Are you sure your connection string is correct?
> http://www.connectionstrings.com/?carrier=mysql
>
> you may need to post some code.
>
> -ralph
>
>
>
>
>

Reply With Quote
  #4  
Old 10-23-2007, 02:38 PM
Ralph
Guest
 
Default Re: MySQL Connection


"Louis" <Louis@discussions.microsoft.com> wrote in message
news:98C56BA7-E158-49D4-912C-EDFC53A96D45@microsoft.com...
> Thanks for the link.
> When I specify the connection by code I can reach the tables, but cannot
> when I tried specifying the provider through the DataEnvironment object.
>
> "Ralph" wrote:
>

<snipped>

Are you talking about DE Designer?


Reply With Quote
  #5  
Old 10-24-2007, 04:50 PM
=?Utf-8?B?TG91aXM=?=
Guest
 
Default Re: MySQL Connection



"Ralph" wrote:

>
> "Louis" <Louis@discussions.microsoft.com> wrote in message
> news:98C56BA7-E158-49D4-912C-EDFC53A96D45@microsoft.com...
> > Thanks for the link.
> > When I specify the connection by code I can reach the tables, but cannot
> > when I tried specifying the provider through the DataEnvironment object.
> >
> > "Ralph" wrote:
> >

> <snipped>
>
> Are you talking about DE Designer?
>
> Yes, You are exactly right!
>

Reply With Quote
  #6  
Old 10-25-2007, 04:10 PM
Ralph
Guest
 
Default Re: MySQL Connection


"Louis" <Louis@discussions.microsoft.com> wrote in message
news:0048E152-2CE4-4885-9736-2061ABDDF7DE@microsoft.com...
>
>
> "Ralph" wrote:
>
> >
> > "Louis" <Louis@discussions.microsoft.com> wrote in message
> > news:98C56BA7-E158-49D4-912C-EDFC53A96D45@microsoft.com...
> > > Thanks for the link.
> > > When I specify the connection by code I can reach the tables, but

cannot
> > > when I tried specifying the provider through the DataEnvironment

object.
> > >
> > > "Ralph" wrote:
> > >

> > <snipped>
> >
> > Are you talking about DE Designer?
> >
> > Yes, You are exactly right!
> >


I was afraid of that. <g>

I don't have a MySQL to play with so I can't test the driver myself. There
is likely just a compatibility problem with DE. Duh! <g>

The problem is that DE is so universally despised by so many VB programmers
I'm not sure where you might get help. In fact most might consider that you
are very lucky that it doesn't work, and therefore required to abandon DE!

You might do a quick test to make sure you can connect outside the DE
environment. Use the "VB Data Form Wizard" to create a quick test app. If it
doesn't work, then you need to look elsewhere - perhaps another driver.

It might help to repost your question to
microsoft.public.vb.general.disscussion. (I'm assuming you have checked out
all the MySQL groups and websites?) If you do be sure to include the exact
string you are using.

hth
-ralph


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 12:43 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.