When PowerBi connects to MySQL, it prompts that components need to be installed before it can be used. I delete the downloaded components and make a detailed tutorial.

question

When we used PowerBi to connect to Mysql, he suddenly prompted us to install components.
insert image description here

solve

  1. Check your own version of MySQL
    Open the cmd run box, enter the command mysql -uroot -p, and then enter the database password
    Enter select version();
    insert image description here
    I am version 8.0.16 here, remember your version number

  2. Download the mysql connector
    https://downloads.mysql.com/archives/c-net/
    Choose the version number you want to download,
    insert image description here
    after downloading, double-click to run it Select
    insert image description here
    When choosing the path, don’t choose the default one, find and install MySQL Server by yourself Under the same directory is the path where MySQL is configured in the system environment. Next step , then done.custom
    insert image description here
    browse
    insert image description here

    insert image description here
    ok

  3. After the installation is successful, restart powerbi.

  4. Connect to the database.
    Fill in the server item and localhost
    insert image description here
    fill in the database in the workbench.
    insert image description here
    Select the database in the pop-up window, fill in the user name and password, and connect.
    insert image description here
    ps: It is important that the downloaded connection component is consistent with its own version number.

Guess you like

Origin blog.csdn.net/m0_58353740/article/details/130748868