Forum Discussion

pranim's avatar
pranim
Helper I
9 years ago
Solved

Trying to connect to MY SQL from Power BI

I am trying to connect to My sql  from Power BI desktop and i am getting the pop window to download My sql tool. should i download them on my computer? I have the images of the pop ups saved but i am not able to attach them here, any easy way to do it?

 

Thanks in advance

 

 

  • Anonymous's avatar
    Anonymous
    9 years ago

    pranim,

    Before you can connect to a MySQL database, you need to install MySQL Connector/Net 6.6.5 for Microsoft Windows on your computer. Select the driver that matches your Power BI Desktop installation (32-bit or 64-bit).

    After installing the MySQL connector, refer to this blog to connect to MySQL in Power BI Desktop.

    If the connection still fails in Power BI Desktop, please check that if you are able to connect to the MySQL database in MySQL workbench, ensure that MySQL workbench is installed in the same machine as Power BI Desktop.

     
    Regards,

22 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    pranim,

    Before you can connect to a MySQL database, you need to install MySQL Connector/Net 6.6.5 for Microsoft Windows on your computer. Select the driver that matches your Power BI Desktop installation (32-bit or 64-bit).

    After installing the MySQL connector, refer to this blog to connect to MySQL in Power BI Desktop.

    If the connection still fails in Power BI Desktop, please check that if you are able to connect to the MySQL database in MySQL workbench, ensure that MySQL workbench is installed in the same machine as Power BI Desktop.

     
    Regards,

  • Ridiculous that this issue persists. I could only get MySQL to connect to Power BI by going WAY back in the connector archive to version 8.0.26.  Why is this an ongoing problem/issue and why aren't these common DB connectors installed WITH Power BI in the first place?

    • mrlutton's avatar
      mrlutton
      Advocate II

      And even that version did not work. Tried mariaDB method as well; nothing works with MySQL - it just will not connect.

  • Is it possible to connect from an other computer, different where the MySQL db is installed?

  • Hi,
    I've installed the MySQL Connector from Oracle, but when I click Get Data and select MySQL I get this:

     

    I've tried restarting PowerBI but to no avail, do I need to reboot my PC?

     

    • nishantscuderia's avatar
      nishantscuderia
      Regular Visitor

      MarcusR1 

       

      I am having exactly the same issue. I have installed the connector but having the same issue. 

       

      Did you had any luck?

       

      Nishant

       

       

      • MarcusR1's avatar
        MarcusR1
        Helper II

        Hi nishantscuderia 

        I installed 8.0.16 connector and then used a MariaDB connection in PowerBI, that worked.

        Let me know if this helps - it seems strange that nobody from Oracle/Microsoft has a solution!
        thanks

         

         

    • Arinze_data's avatar
      Arinze_data
      New Member

      Hi Marcus,

      Install version 8.02 and restart your system.

      It will work perfectly fine

       

  • pls i have the same issues, i have downloaded the connector, but it keeps poping up the same error of me needing to download  my sql connector.

  • Hi guys,

     

    I have been trying in vain for the past 10 days and on different machines. I went through installing and un-installing various versions of connectors and Power BI and had no luck. I raised a ticket with Microsoft and they called promptly and tried everything that I tried over the past 10 days. They collected logs and promised to revert. But I got it working as soon as I finished with their call.

     

    What worked for me is:-

    1. Install latest connector from https://dev.mysql.com/downloads/connector/net/ 

    2. Install ODBC from https://dev.mysql.com/downloads/connector/odbc/ 
    3. Open Power BI

    4. Get data from other sources.

    5. Select MySql Database.

    6. Input Server IP or Host name (port number is optional as with or with port number gave me the same results)

    7. Input database name.

    8. Use Database credentials instead of Windows Credentials.

    9. Enter database username and password

    10. Select which level to apply these settings to (from the drop down) to the ipaddress/hostname;databasename

     

    And you are connected. 

     

    Hope this works for you guys.