Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-33374

main.mysql_connector_net fails on new Windows 11

    XMLWordPrintable

Details

    Description

      After reinstall on Windows 11, got following error running

      perl mysql-test-run.pl --suite=main main.mysql_connector_net

      CURRENT_TEST: main.mysql_connector_net

      File C:\work\10.11\mysql-test\main\mysql_connector_net.ps1 cannot be loaded because running scripts is disabled on
      this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
          + CategoryInfo          : SecurityError: (:) [], ParentContainsErrorRecordException
          + FullyQualifiedErrorId : UnauthorizedAccess
      mysqltest: At line 7: command "powershell -NoLogo -NoProfile -File main\mysql_connector_net.ps1" failed with wrong error: 1
      

      There is a thing for powershell, called script execution policy. On most developers boxes local scripts won't be restricted, but on "virgin" client Windows it is is restricted, i.e interactive execution in powershell is allowed, while script execution is not.

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            wlad Vladislav Vaintroub
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.