Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Linking To Mysql From Vb
kvarnerexpress
post Oct 5 2005, 10:00 PM
Post #1


Super Member
*********

Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



Hi I have used vb to link to an access 2003 database using the adodc component- (connection string etc etc). Right I am now working with mysql (which I would like to say I am loving it) and I have migrated the access 2003 db's into mysql using the migration toolkit . How can I link to mysql db in a similar fashion. Please reply.

Thanx.
kvarnerexpress
Go to the top of the page
 
+Quote Post
Nileshpatel
post Oct 5 2005, 10:58 PM
Post #2


Newbie [Level 3]
***

Group: Members
Posts: 42
Joined: 3-October 05
Member No.: 12,518



Hello kvarnerexpress,

Please follow the site http://www.connectionstrings.com/ where you get all connection string.

Go to the top of the page
 
+Quote Post
Galahad
post Oct 17 2005, 02:59 PM
Post #3


Neurotical Squirrel
*********

Group: [HOSTED]
Posts: 590
Joined: 4-November 04
From: Novi Sad, Vojvodina
Member No.: 2,127



I'm a bit late, but I will give my contribution to this. On Planet Source Code (here's the link: Planet Source Code), there is a project in Visual Basic, called MyVbQL, that compiles into ActiveX DLL, and can be used to access MySQL databases.

I have used this project, and I can say it works pretty fine, it is stable, and runs fast. It relies fully on libmysql.dll, and even if you upgrade your MySQL server, it will work fine.
Go to the top of the page
 
+Quote Post
magiccode9
post Nov 2 2005, 08:00 AM
Post #4


Premium Member
********

Group: Members
Posts: 162
Joined: 1-November 05
From: SATA II
Member No.: 13,683



hi, all,

there is no longer need to use thrid-party component that may be not function correctly(of course, some component would be stable as Galahad said)

coz mysql company have made a conponent that is odbc compatible.
you can go here to download.

P.S. .net version component also are here.
Go to the top of the page
 
+Quote Post
michaelper22
post Dec 28 2005, 01:31 AM
Post #5


-=Hybrid Bus=-
*********

Group: Members
Posts: 744
Joined: 2-November 05
From: My hybrid bus (in NYC), a computer
Member No.: 13,709
Spam Patrol



QUOTE(magiccode9 @ Nov 2 2005, 03:00 AM)
hi, all,

  there is no longer need to use thrid-party component that may be not function correctly(of course, some component would be stable as Galahad said)

coz mysql company have made a conponent that is odbc compatible.
you can go here to download.

P.S. .net version component also are here.
*


Thanks so much for that link. I always thought that it would take so much to connect to a MySQL server in .Net programs. How on earth you you use ODBC databases in .Net? I heard of the MySQL OCBC component before, used it once or twice....
Go to the top of the page
 
+Quote Post
Sarith Pallewela
post Jan 13 2006, 02:45 PM
Post #6


Newbie [Level 2]
**

Group: Members
Posts: 38
Joined: 13-January 06
Member No.: 17,042



Why don't you use VB.net? It gives you much more flexibility and a better secure connection! Just try It! O.K?
Go to the top of the page
 
+Quote Post
Inspiron
post Jan 13 2006, 03:56 PM
Post #7


Trap Grand Marshal Member
***********

Group: Members
Posts: 1,205
Joined: 25-March 05
Member No.: 4,883



I was using Microsoft Access database once ago for my project done in JSP (Java Server Pages - similar to PHP). Rather my school only taught me to use Microsoft Access. But I've found a way to connect to MySQL database for an alternative database method.

You will need another connector driver. By default, Microsoft uses ODBC (Open DataBase Connectivity) for it's Microsoft-based databases. A bridge driver is needed to connected Java applications into ODBC, which then connects to the database itself. For Java, the bridge is called JDBC (Java DataBase Connectivity).

As for your case, the current versions of Visual Basics should be based on .NET framework. MySQL has also developed a driver to connect .NET applications to MySQL databases. You will need to download and install the driver to enable the connectivity.
http://dev.mysql.com/downloads/connector/net/1.0.html

The source codes in VB for connecting to MySQL databases should remain unchanged. The only changes that has to be done is to link your MySQL database into ODBC in Administrative Tools in Control Panel.
For more information of these steps, visit the following sites :
http://www.nusphere.com/products/library/d..._mysql_odbc.htm
http://www.15seconds.com/issue/050407.htm
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Mysql In Visual Basic(5)


 



- Lo-Fi Version Time is now: 8th September 2008 - 07:26 AM