Skip to content

Instantly share code, notes, and snippets.

@jtuttas
Created July 5, 2013 11:55
Show Gist options
  • Save jtuttas/5934056 to your computer and use it in GitHub Desktop.
Save jtuttas/5934056 to your computer and use it in GitHub Desktop.
Verbindung von Powershell zu einer MySql Datenbank
$connString = "Server=localhost;Uid=tuttas;Pwd=joerg123;database=wol";
# load MySQL driver and query database
[void][system.reflection.Assembly]::LoadFrom("MySQL.Data.dll");
$conn = New-Object MySql.Data.MySqlClient.MySqlConnection;
$conn.ConnectionString = $connString;
$conn.Open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment