About a month ago, I published how you can connect to MySQL with a small form. One suggestion, or lets promote it to a request, from that post was: “Nice, but how do you create a reusable library for the MySQL Connection Dialog box?”
That was a good question but I couldn’t get back until now to write a new blog post. This reusable MySQL connection dialog lets you remove MySQL connection data from the command-line history. This post also shows you how to create and test a Powershell Module.
The first step to create a module requires that you set the
proper %PSModulePath%
environment variable. If you
fail to do that, you can put it into a default PowerShell module
location but that’s not too effective for testing. You launch the
System Properties dialog and click the Environment …