Skip to content

No option to not use SSL #6

Open

Description

@steviecoaster

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

Activity

  1. cabozone commented on Jun 29, 2018

    @cabozone

    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.

  2. steviecoaster commented on Jun 30, 2018

    @steviecoaster
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions