06-30-2012, 09:22 AM
Just a basic example for connecting to your online database. Shouldn't be hard to convert C# to VB.NET.
Code:
using MySql.Data.MySqlClient;
MySqlConnectionStringBuilder conString = new MySqlConnectionStringBuilder();
conString.Server = "server/host here";
conString.Database = "database here";
conString.UserID = "username here";
conString.Password = "password here";
MySqlConnection con = new MySqlConnection(conString.ToString());
MySqlCommand cmd = con.CreateCommand();
try
{
con.Open();
MessageBox.Show("Connected");
}
catch
{
MessageBox.Show("Cannot connect");
}