Bonjour,
Ich habe mal wieder ein kleines Problem ;)
Ich habe mir eine WindowsForm erstellt und versucht eine Verbindung zur Mysql Datenbank im Internet herzustellen, aber irgendwie bekomme ich keine Verbindung... :(
Ich habe mal wieder ein kleines Problem ;)
Ich habe mir eine WindowsForm erstellt und versucht eine Verbindung zur Mysql Datenbank im Internet herzustellen, aber irgendwie bekomme ich keine Verbindung... :(
PHP Code:
private void button1_Click(object sender, EventArgs e)
{
string myConnectionString = "HOST=fobojo.bplaced.net" + "SERVER=localhost;" + "DATABASE=fobojo_test;" + "UID=fobojo_test;" + "PASSWORD=12345;";
MySqlConnection connection = new MySqlConnection(myConnectionString);
try
{
connection.Open();
if (connection.State == ConnectionState.Open)
{
MessageBox.Show("Sie wurden erfolgreich mit Fobojo.bplaced.net verbunden ;)");
connection.Close();
}
}
catch (Exception exception)
{
MessageBox.Show(exception.Message);
connection.Close();
}
}