Imports MySql.Data.MySqlClient Public Class Form1 Dim MysqlConn As MySqlConnection Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MysqlConn = New MySqlConnection MysqlConn.ConnectionString = "server=localhost;userid=root;password=root;database=database" Try MysqlConn.Open() MessageBox.Show("Connection Successful") MysqlConn.Close() Catch ex As MySqlException MessageBox.Show(ex.Message) Finally MysqlConn.Dispose() End Try End Sub End Class
-----------------------------------------------------------------
Using MySQL Database with Visual Basic .NET 2010
MySQL :: MySQL for Visual Studio
How to connect to MySQL database from Visual Basic
Vb Connecting to an online mysql server database
Connecting to MySQL databases using VB.NET
VB.Net MySQL Database Tutorial
VB.NETWindows Form Application Mysql Connection
VB.NET- How can I connect to MySQL from windows forms?
Using Visual VB.NET Windows Forms with MySQL
VB.NET Programming for beginners: How to connect MySQL Database
Windows Form Application using Mysql Server
Connect MySQL from VB.NET Windows Forms
mysql problem to connect with windows form VB.NET
VB.NET Windows Form Application Mysql Connection
Mysql And Visual VB.NET 2010 Windows Form Application
MySQL :: Connecting to MySQL with a Windows Form application
VB.NET Form textbox string into SQL Database
visual VB.NET CLR windows form application and mysql
assembly reference not working in VB.NET script
Trying to connect to MySQL from VB.NET application
mysql and VB.NET window form application
How to connect MySQL using VB.NET?