Created
July 5, 2013 11:55
-
-
Save jtuttas/5934056 to your computer and use it in GitHub Desktop.
Verbindung von Powershell zu einer MySql Datenbank
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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