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

How to connect to a MySQL server database VB NET VB.NET VB6 Visual Basic

Loading...

Sign in or sign up now!
51,436
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 13, 2009

required dll (UPDATED!):
http://filebeam.com/39afb51e15a9863bd2dd8067b0b2d3a8

copy paste text:

"server=" & txtServer.Text & ";user id=" & txtUsername.Text & "; password=" & txtPassword.Text & "; port=3306; database=" & txtdb.Text & "; pooling=false"


entire code:

Imports MySql.Data.MySqlClient
Public Class Form1 Private Sub btnConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConnect.Click Try Dim Connection As New MySqlConnection("server=" & txtServer.Text & ";user id=" & txtUsername.Text & "; password=" & txtPassword.Text & "; port=3306; database=" & txtdb.Text & "; pooling=false") Connection.Open() MsgBox("Connected to: " & txtServer.Text) Catch ex As MySqlException MsgBox(ex.Message) End Try End Sub
End Class

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 8 dislikes

Link to this comment:

Share to:

Uploader Comments (nathan76296)

  • Just kidding, followed the whole video ofcourse.

    However i always end up with "Acces denied for user '...'@'myserveriphere' (Using password: YES)

    Strange.

  • @EasyTool70 Sounds like a mysql server issue not a issue with the program. Make sure you have the right password for that account.

  • @nathan76296

    Hmm yeah it was i think.

    Fixed it before i saw this but i think you were right.

    I made an new database and again all tables in it and its working great right now.

    Is it possible that if someone registers at my forum, it's username goes directly to my mysql database?

    If so then how?

    And if you dont know either, can you refer me/us to some valuable tutorials?

  • @EasyTool70 When you have a online forum most of them use a mysql database to hold the account information in. If you want their username to go into a custom database as well as the one the forum uses then you will have to modify the PHP.

  • Thats the point where i turned my pc off.

    When you said "browse"

    Around 0:24

  • @EasyTool70 why turn it off? you should of just threw it out the window.

Top Comments

  • Your voice is funny :D

  • Is this really your voice? :P

see all

All Comments (54)

Sign In or Sign Up now to post a comment!
  • ara marra canr dor it so ara do it :D

  • low there.. could somebody post a vb6 with mysql connection set-up? just the steps. please.. that will be a great help for us students.. I am a graduating student. please lend a helping hand,,,

  • HAHAHA xDDDD

    "I Will put it in my description so you don't send me dirty messages" xD

  • @Zaxer11 He's from Finland, almost everybody from there talks like that when they talk English xD

  • all is well :)

  • lol it's a virus?

  • russel peters cusen >>> take it and go

  • @Zaxer11

    INSTEAD OF SAYING THIS , YOU CAN SAY THANK YOU ! IT WILL BE MUCH BETTER !

    THANK YOU NATHAN !

  • pakiggg

View all Comments »
Loading...

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