2,187
edits
(Add Google Ads) |
(→Connect: Made function names consistent) |
||
Line 36: | Line 36: | ||
Improved connect function with error catcher... | Improved connect function with error catcher... | ||
<source lang="powershell"> | <source lang="powershell"> | ||
function | function Connect-MySQL([string]$user, [string]$pass, [string]$MySQLHost, [string]$database) { | ||
# Load MySQL .NET Connector Objects | # Load MySQL .NET Connector Objects | ||
[void][system.reflection.Assembly]::LoadWithPartialName("MySql.Data") | [void][system.reflection.Assembly]::LoadWithPartialName("MySql.Data") | ||
Line 61: | Line 61: | ||
</source> | </source> | ||
{{#widget:Widget:GoogleAdSenseSkyscraper}} | {{#widget:Widget:GoogleAdSenseSkyscraper}} | ||
= Commands = | = Commands = | ||
All database operations are done through methods of the <code> MySqlCommand </code> object, the two methods of main interest are... | All database operations are done through methods of the <code> MySqlCommand </code> object, the two methods of main interest are... |