MySQL icon indicating copy to clipboard operation
MySQL copied to clipboard

No option to not use SSL

Open steviecoaster opened this issue 7 years ago • 2 comments

While using SSL is highly encouraged, there are edge cases where it's not enabled, and therefore the connect-mysqlserver cmdlet fails.

steviecoaster avatar Jun 20 '18 15:06 steviecoaster

In the file MySQL.psm1

Look for the $connectionString and add SslMode=none; in the variables.

$connectString = 'server={0};port={1};uid={2};pwd={3};database={4};SslMode=none;' -f .......

Add this to bot connection string lines and then

Remove-Module MySQL Import-Module MySQL

Then try to connect again.

cabozone avatar Jun 29 '18 21:06 cabozone

That's all well and fine. But the PR I put in to add the -UseSSL switch is much cleaner. Especially when you have systems with and without it.

steviecoaster avatar Jun 30 '18 15:06 steviecoaster