Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
As the title says, I have a my_sql database that is used for Power BI reporting. There is a connection on PBI Desktop that has the exact same connection string and credentials as that of the on-premesis way. The on-premesis gateway has had zero problems refreshing this PBI report online but I am unable to connect to this same my_sql database on my desktop.
Here is the error I am receiving in desktop:
DataSource.Error: MySQL: Authentication to host '*****' for user '**' using method 'mysql_native_password' failed with message: Reading from the stream has failed.
Details:
DataSourceKind=MySql
DataSourcePath=**.***.**.**;***
Message=Authentication to host '**.***.**.**' for user '**' using method 'mysql_native_password' failed with message: Reading from the stream has failed.
ErrorCode=-2147467259
Also, I can connect to this database using MySQL Workbench without issues with the exact same credentials.
The last time I was able to connect successfully in desktop was in the end of September 2021. Note, this report does not get modified often but we will be archiving some data in the near future and I need to adjust where data is being sourced in Power Query.
Edit: PBI desktop and gateway are all up to date
Any help would be appreciated greatly!
Solved! Go to Solution.
Hi @sjrrkb123 ,
ErrorCode=-2147467259 often represents invalid credentials for the datasets. In this case, please try to clear the credentials about MySQL in Power BI Desktop and reconnect to it.
If the same credential still could not work in Power BI Desktop but in Power BI Service, try to use another authentication method to connect.
In addition, whether have set encrption connection for it. If the connection is not encrypted, you'll be prompted with the following dialog.
Select OK to connect to the database by using an unencrypted connection, or follow the instructions to set up encrypted connections to SQL Server.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
That did it ty.
Hi @sjrrkb123 ,
ErrorCode=-2147467259 often represents invalid credentials for the datasets. In this case, please try to clear the credentials about MySQL in Power BI Desktop and reconnect to it.
If the same credential still could not work in Power BI Desktop but in Power BI Service, try to use another authentication method to connect.
In addition, whether have set encrption connection for it. If the connection is not encrypted, you'll be prompted with the following dialog.
Select OK to connect to the database by using an unencrypted connection, or follow the instructions to set up encrypted connections to SQL Server.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.