Issue connecting to MySQL db through PowerQuery

barjoman

Board Regular
Joined
Oct 29, 2014
Messages
99
Ladies and Gents,

I've come across an extremely puzzling issue. I'm attempting to connect to a MySQL db through PowerQuery. I downloaded the mysql connector (originally version 6.6.5 but rolled back to 6.4.6 in an attempt to resolve this issue) and connected to the db. So far so good. It asks me to turn off encrypted connections, no problem. I can preview every single table in the db except for one. I can load all of those and build queries around them, but there is ONE table which I can't view and, FML, it is the ONLY one I need :eek:.

The error I get in the Navigation window (when we load the db and want to select tables) is as follows:

Permission Error: The MySql source doesn't support encrypted connections. Please check your security policy and try connecting without encryption through the Data Source Settings dialog to continue. (Source at [192.xxx.xxx.xxx;dbname].)

When I hit edit, what I see is:

Try changing the Connection encryption setting to connect to this data source.

I've made sure encryption is off by going to File-->Options and Settings-->Data Source Settings

There is also a "Edit Credentials" link in the PQ window which I've clicked. It just asks me for the credentials again. When I hit Connect, I get a dialog:

The data source you're trying to access doesn't support encryption. To access this data source using an unencrypted connection, click OK.

Hitting ok just brings the same dialog again in an endless loop.

I was hoping the fine brains here would be able to make sense of this.

Many thanks in advance,
Ben
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Alright, so I figured out the issue through some back and forth with my db admin. Turns out, there is a text field which was encoded as UTF-16 which was causing the issue. Changing the encoding to UTF-8 resolved the issue.
 
Upvote 0

Forum statistics

Threads
1,214,806
Messages
6,121,672
Members
449,045
Latest member
Marcus05

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top