2,187
edits
m (→Commands: Added Reader Query) |
m (Minor edit) |
||
Line 237: | Line 237: | ||
</pre> | </pre> | ||
Instead, this function seems to work perfectly | Instead, this function seems to work perfectly (borrowed from [http://database-programming.suite101.com/article.cfm/connecting_to_mysql_from_powershell Mark Alexander Bain]). I suspect it could be simplified, but it does the job I want, returning a table of results. | ||
<pre> | <pre> | ||
function ExecuteMySQLQuery([string]$query) { | function ExecuteMySQLQuery([string]$query) { |