Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Database and Reporting > VB and MySQL


Reply
 
Thread Tools Display Modes
  #1  
Old 05-19-2004, 01:09 PM
carat3n carat3n is offline
Regular
 
Join Date: Jan 2004
Posts: 58
Default VB and MySQL


I am thinkging of taking on a project involving MySQL with VB. Yet, am not exactly sure where to begin learning. Some pointers would be appreciated.

Is it complex to implement MySQL?

How do i distribute my Software with MySQL?

thanks
Reply With Quote
  #2  
Old 05-19-2004, 01:18 PM
Peperl's Avatar
Peperl Peperl is offline
Senior Contributor
 
Join Date: Apr 2003
Location: Cartagena, Spain
Posts: 1,371
Default

i normally work with MySQL and works fine, but i never work with Access or SQL Server so i can't compare, but i try my applications in different places and works faster and fine.

With MySQL i have used, in the beginning ADODC objects and System DNS to connect, but after i discovered ADODB objects and works much better and it's more flexible, and i learn too to use string connections to connect with a database in one line. you only have to add the references in VB and declare a ADODB.recordset object (for example)

to distribute your software you'll need the MySQL ODBC driver that you can found in the MySQL web, and also, install the mysql server

look for a tool named MySQL Front, it helps you to use MySQL databases, i THINK that the 2.5 version is free, but the 3 version no ... take a look in the web

in the tutors corner or the code library of this forum i think there's a few examples to connect with databases, here's one

Code:
Dim AdoRecordset As New ADODB.Recordset AdoRecordset.Open "SELECT * FROM mytable", "driver={MySQL ODBC 3.51 driver};server=localhost;uid=root;pwd=;database=mydatabase, adOpenKeyset, adLockOptimistic, 1

hope this helps
__________________
Pri Oh Persia
Reply With Quote
  #3  
Old 05-19-2004, 02:35 PM
asonetuh asonetuh is offline
Centurion
 
Join Date: Nov 2002
Posts: 133
Default

There is also a site dedicated to VB with MySQL that could be a good resource.
Reply With Quote
  #4  
Old 05-20-2004, 10:40 AM
carat3n carat3n is offline
Regular
 
Join Date: Jan 2004
Posts: 58
Default

Great advice. I will look into all the points mentioned.

Thanks! Words couldn't express how much a few pointer means to me.
Reply With Quote
  #5  
Old 06-04-2004, 01:06 PM
kornflakes kornflakes is offline
Centurion
 
Join Date: Dec 2003
Location: Dagupan City, Philippines
Posts: 199
Default is this possible?

i use redhat 8.0 and i have mysql running on it. is there any possibility that i can connect mysql to my visual basic program in winxp?

how can i also convert access database to mysql in mysql in redhat? i just want to try if that is possible. is it? im just exploring the power of linux. im a newbie on it. thanks in advance! =)
Reply With Quote
  #6  
Old 06-05-2004, 01:46 AM
carat3n carat3n is offline
Regular
 
Join Date: Jan 2004
Posts: 58
Default

Interesting, but i haven't tried it. Sorry...

Maybe could try a new Post.

I'll be interested to know as well.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mySQL Jamboo Database and Reporting 1 12-30-2003 02:56 AM
great product for dumping/recovering MySQL databases Dave Brown Database and Reporting 2 10-03-2003 12:52 PM
MySQL: E_FAIL Error. Shannara Database and Reporting 2 07-02-2003 12:03 AM
connecting to a mySQL database Symee Database and Reporting 1 04-08-2003 04:13 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->