Подключение MySQL workbench к MS ODBC - PullRequest
0 голосов
/ 09 июля 2020

Я пытаюсь подключить сервер MySQL, созданный в SQL workbench, к ODB C, чтобы я мог получить доступ к данным в excel.

Я проверил, что мой сервер и экземпляр работают, я также разрешил ODB C через свой windows брандмауэр.

server running

I have tried entering 127.0.0.1, localhost and my full computer name as the TCP address however i still get a connection denied message.

the connection window

Error Message

However if i test the connection from within workbench it connects fine to the SQL Server.

Подключение к базе данных из рабочей среды

1 Ответ

0 голосов
/ 09 июля 2020

Хорошо, я нашел способ заставить его работать,

Перейдите к «пользователям и привилегиям» в SQL Workbench,

enter image description here

Select your username from the left (not root)

enter image description here

Then were it says "limit to host matching" change the "%" symbol to your local ip 127.0.0.1, Also change the root password.

enter image description here

Then enter these new details in ODBC and it should work.

введите описание изображения здесь

...