Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-154

Plugin caching_sha2_password could not be loaded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.0.6
    • Fix Version/s: None
    • Component/s: Generic
    • Labels:
      None
    • Environment:
      Windows

      Description

      The following code yields an error: mariadb.OperationalError: Plugin caching_sha2_password could not be loaded: The specified module could not be found. Library path is 'c:/Program Files/MariaDB/MariaDB Connector C 64-bit/lib/plugin/caching_sha2_password.dll'

      The issue seems to be that the MariaDB server installs itself in 'C:\Program Files\MariaDB 10.5' and the DLL seems to be located here instead: 'C:\Program Files\MariaDB 10.5\lib\plugin'

      import mariadb
       
      mydb = mariadb.connect(
              host="localhost",
              user="root",
              password="password",
              database="master"
          )
      

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            fchareyron François Chareyron
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration