Forum Discussion

sois's avatar
sois
New Member
10 years ago
Solved

Cannot connect to local MySQL database.

Hi All, I press get data and select MySQL datatabase. 

 

I get the following message:

 

"we encountered an error while trying to connect. the connector cannot be used because you are missing one or more required components.".

 

The Learn More link took me to the MySQL site to download 

mysql-connector-net-6.6.5.msi.

 

I downloaded that and nothing happened. I restarted my machine as well, no dice.

 

Windows 10, 32 bit office, 32 bit power BI.

 

Thank you.

  • sois Ignore that link and instead download x64 bit MySQL connector and install yourself. I have seen before where doing that has fixed the problem.

37 Replies

    • walkrick's avatar
      walkrick
      Regular Visitor

      I've been trying out different solutions for two days, this finally worked!  Thank you!!

    • simran_virdee's avatar
      simran_virdee
      Regular Visitor

      Thank you so much dear. I have been working on this issue for last 2 days. 

      You solved my problem 

      • JNP's avatar
        JNP
        Advocate I

        Glad to hear it ! I know the feeling 👍

      • JNP's avatar
        JNP
        Advocate I

        Glad to hear it !

  • ankitpatira's avatar
    ankitpatira
    Community Champion

    sois Ignore that link and instead download x64 bit MySQL connector and install yourself. I have seen before where doing that has fixed the problem.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi everyone, 

      Can anyone help me. 

      I just installed Power BI, and I cannot connect with Mysql database, it had the same error like this thread. My lastest version is v.8.0.33. 

      I tried to download MySQL connector (the link is 32 bit), but when installed it not showed install, just show "repair, remove options", not have "typical" like some youtube video shared. 

      I tried many times, but it still happened, please help me! 🙏

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi everyone,

         

        I am running into the same issue with MySQL database/ connector issue. I am currently having version 8.0.33 installed on my pc. I start to get this pop-up error below when trying to get data into Power BI

         

         

        Does anyone know how to get this issue resolved? Please advise.

         

        Thank you,

    • sau6402's avatar
      sau6402
      New Member

      ankitpatira - Can you please share the x64 dowload link you are referring to. I installed x64 from this link but no success [I think we need .NET connector and not ODBC. I was unable to find .NET x64]

    • sois's avatar
      sois
      New Member

      Perfect, thank you! I just downloaded the latest version and restarted  the app. It works now!

      • Anonymous's avatar
        Anonymous
        Not applicable

        Which version(s) did you install?
        I have 8.0.33... it does not work for me.

  • I tried to connect power Bi with both 32 bit and 64 bit MySql connector . but non of them worked ,everytime getting an error that "this connector require one or more component" . 

     

    Any help will be highly appreciated.

     

    Thanks

    • Stulle2612's avatar
      Stulle2612
      New Member

      my current MySQL installation (5.7.19) installed the Connector/NET 6.9.9; this produced the wellknown error.

       

      Solution:

      1. using MySQLInstaller and uninstall the Connector/NET
      2. download version 6.6.7 from MySQL
      3. doubleclick the downloaded MSI-file for installing it
      4. any type of restart needed ? I don't know/remember

       Hope this discription helps

  • Hi I have the same problem I tried many times nothing still been solved, please advice.

     

  • Try to check environment variables in your system and add server bin url  (c:\Program Files\MySQL\MySQL Server 8.0\bin) there. It should resolve.