Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Connect to MySQL with Visual Basic using Visual Studio 2010 - Tutorial

Loading...

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

Uploaded by on Jun 11, 2011

Important: Watch this full screen at 1080p resolution for best viewing.

Web address to download Connector/Net. This is required and installs the DLL needed to add to References.
http://www.mysql.com/downloads/connector/net/

I needed to do this recently and became frustrated with tutorials I found online. This shows you how to quickly get started and includes two different ways to read the data.

The command prompt at the beginning shows the database table I'll read in from Visual Studio, and I give read/write permission to a user referenced again in the connection string.

The indices used when filling in the textfield refer to the column index. You must specify the datatype when retreiving the data. Each while loop iteration is reading in a row.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (jkadoodle)

  • Thank you, help me a lot

  • @Evilmasterization Glad you found it helpful! I made this just as I was figuring it all out myself. I realized shortly after that in addition to referencing the columns by index, you can also type in the column name in quotes. Much more useful.

see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • Hey Thank you very much for posting this video you help so much !Could you make a sequel where they would be performed on the same basis of writing and erasing add new data?All best man !

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