Closed cetubig closed 4 years ago
Have you imported the module? run the following and post the output.
Import-Module SimplySql -Force
Get-Module SimplySql | Select-Object ModuleType, Version, Name
(Get-Module SimplySql).ExportedCommands.Keys | Where-Object { $_ -like "open*"}
Yes, I imported the module many times but no luck.
On Sun, Feb 16, 2020 at 12:00 AM Mithrandyr notifications@github.com wrote:
Have you imported the module? run the following and post the output.
Import-Module SimplySql -ForceGet-Module SimplySql | Select-Object ModuleType, Version, Name (Get-Module SimplySql).ExportedCommands.Keys | Where-Object { $_ -like "open*"}
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mithrandyr/SimplySql/issues/26?email_source=notifications&email_token=ANHNG7ZXKVHXG32P6XRVV6DRDAGRZA5CNFSM4KVZKVZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL3QCJA#issuecomment-586613028, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANHNG77OBT2ILGTWSIXAH7DRDAGRZANCNFSM4KVZKVZA .
Can you run the powershell code that I mentioned above and post the results? Also, what version of Powershell are you running?
@cetubig Also, are you using PowerShell 5.1?
$PSVersionTable
<# returns something like this?
Name Value
---- -----
PSVersion 5.1.18362.628
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.628
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
#>
Further, there should be errors in the $error
variable -- so take a look at those errors?
For a clean check, run powershell with the -noprofile
flag (so nothing loads), then import simplysql, check for errors, then try running a command, check for errors, etc.
Yes I'm using PowerShell 5.1. I'll try next time. I already found working cmdlet module. Thanks.
On Sat, Feb 29, 2020 at 11:47 PM Mithrandyr notifications@github.com wrote:
@cetubig https://github.com/cetubig Also, are you using PowerShell 5.1?
$PSVersionTable<# returns something like this?Name Value---- -----PSVersion 5.1.18362.628PSEdition DesktopPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}BuildVersion 10.0.18362.628CLRVersion 4.0.30319.42000WSManStackVersion 3.0PSRemotingProtocolVersion 2.3SerializationVersion 1.1.0.1#>
Further, there should be errors in the $error variable -- so take a look at those errors? For a clean check, run powershell with the -noprofile flag (so nothing loads), then import simplysql, check for errors, then try running a command, check for errors, etc.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mithrandyr/SimplySql/issues/26?email_source=notifications&email_token=ANHNG74GV3VQSVKADGIU3Q3RFEWYZA5CNFSM4KVZKVZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENL5JNI#issuecomment-592958645, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANHNG7632WRXUJALLCOEVALRFEWYZANCNFSM4KVZKVZA .
Not Reproducible.
Open-MySqlConnection : The term 'Open-MySqlConnection' is not recognized as the name of a cmdlet, function, script