Share via

Cannot 'Get Data (Power Query)' 'From SQL Server ODBC' on Mac Excel (16.68)

Anonymous
2022-12-24T17:09:36+00:00

I have a MySQL database 8.0.31 with ODBC drivers running local on my MAC. I know Excel can connect to it as you see from this screen shot where I use the Get Data (Power Query From Database (Microsoft Query) and from the dialogue box select System DSN and login with my credentials and are able to run a SQL query the database:

However, when I use Get Data (Power Query) From SQL Server ODBC and fill out the corresponding dialogue box, I get the following error:

I have also tried localhost 127.0.0.1 and also with port added like 127.0.0.1:3306.

Searching on this error does not tern up anything for my particular scenario. The best I can tell it can't find the host (but I'm at a loss as to what that syntax would be.

Microsoft 365 and Office | Excel | Other | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Jim G 134K Reputation points MVP Volunteer Moderator
    2022-12-26T18:48:28+00:00

    The example I use for teaching SQL Server when connecting Excel requires a comma. I think there's only one or two valid port numbers. One of them is 49360

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-12-24T19:53:36+00:00

    When I try a coma instead of a colon between the IP and Port, I get an immediate error as if the syntax is wrong. When I do the 127.0.0.1:3306 it acts like it is at least trying and times out

    Was this answer helpful?

    0 comments No comments
  3. Jim G 134K Reputation points MVP Volunteer Moderator
    2022-12-24T17:46:47+00:00

    Hi

    I would have expected to see the IP address of the SQL Server in the Server Name field. I think there's supposed to be a comma followed by the TCP port number.

    Was this answer helpful?

    0 comments No comments