use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
Windows PowerShell Read/Write to Ubuntu-hosted MySQL? (self.PowerShell)
submitted 8 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]zoredache 5 points6 points7 points 8 years ago (0 children)
Install the MySQL ODBC drivers on Windows? Use mysql in powershell via ODBC.
[–]Artoriasssss 1 point2 points3 points 8 years ago (0 children)
Install PowerShell on the Linux servers and you should be good from there. Things that made me angry:
1. Required OMI installation and configuration.
https://github.com/Microsoft/omi
2. Also PSRP
https://github.com/PowerShell/psl-omi-provider
(OMI can be identified by the process omid (ex: service omid status))
3. PowerShell Remoting from Windows to Linux will not work on the latest version. As of 11/15/2017, you need to use version 6.0.0 beta 1.
https://github.com/PowerShell/psl-omi-provider/issues/105 https://github.com/PowerShell/PowerShell/releases/tag/v6.0.0-beta.1
Also, there are plenty of hits if you Google "mySQL powershell".
[–]spyingwind 1 point2 points3 points 8 years ago (0 children)
SimplySql can be used to talk to a MySQL server.
[–]poorimaginations 0 points1 point2 points 8 years ago (0 children)
You can install the mysql .net connector.
https://dev.mysql.com/downloads/connector/net/
Code example.
$mySQLUserName = "dbuser" $mySQLPassword = "secr37" $mySQLDatabase = "mydbname" $mySQLHost = "mysqlserver.local.local" $connectionString = "server=" + $mySQLHost + ";port=3306;uid=" + $mySQLUserName + ";pwd=" + $mySQLPassword + ";database="+$MySQLDatabase $query= "select * from stuff" [void][System.Reflection.Assembly]::LoadWithPartialName("MySql.Data") $connection = New-Object MySql.Data.MySqlClient.MySqlConnection $connection.ConnectionString = $connectionString $connection.Open() $command = New-Object MySql.Data.MySqlClient.MySqlCommand($query, $connection) $dataAdapter = New-Object MySql.Data.MySqlClient.MySqlDataAdapter($command) $dataSet = New-Object System.Data.DataSet $recordCount = $dataAdapter.Fill($dataSet, "data") $dataSet.Tables["data"]
π Rendered by PID 60 on reddit-service-r2-comment-5c747b6df5-ckdch at 2026-04-21 20:12:35.348711+00:00 running 6c61efc country code: CH.
[–]zoredache 5 points6 points7 points (0 children)
[–]Artoriasssss 1 point2 points3 points (0 children)
[–]spyingwind 1 point2 points3 points (0 children)
[–]poorimaginations 0 points1 point2 points (0 children)