How to Connect to MySQL with Visual Basic .Net?

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
18,350
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 2, 2010

This short tutorial shows how to connect to MySQL server using Visual Basic .Net.

Category:

Education

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (SridharanTiru)

  • Good Example, I tried running this but get Object reference not set to an instance of an object. referring to myForm1.lblStatus.BackColor = Color.Red, Any ideas how to fix this?

  • This is imminent when the class object been created without the key word "new". Or another probable cause of this is improper definition inside the constructor. If these two does not work, then try the same code starting a new project.

  • Too much work to put links in description? Its pretty annoying to copy them from video... Otherwise nice video I try to get it working!

  • Link has been provided in the video to download the source code. No need to copy. Thanks.

  • Try as a 'localhost' instead of using ip address that will help test the connectivity problem. If you are trying to connect remotely firewall exemption should be added to the particular port. Hope this helps.

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • @mirwais69 Or else get the code and find a converter on the internet they are really easy to find

  • ok... does it matter if you have a C# application or VB... i am thinking that connection to the visual studio, should be the same for VB or C#. I am kind of lost with this code and creating of the preferrences etc.... How can you help me connect my SQL database using C#....?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more