question
When we used PowerBi to connect to Mysql, he suddenly prompted us to install components.
solve
-
Check your own version of MySQL
Open the cmd run box, enter the commandmysql -uroot -p
, and then enter the database password
Enterselect version();
I am version 8.0.16 here, remember your version number -
Download the mysql connector
https://downloads.mysql.com/archives/c-net/
Choose the version number you want to download,
after downloading, double-click to run it Select
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
browse
ok
-
After the installation is successful, restart powerbi.
-
Connect to the database.
Fill in the server item andlocalhost
fill in the database in the workbench.
Select the database in the pop-up window, fill in the user name and password, and connect.
ps: It is important that the downloaded connection component is consistent with its own version number.