将MySQL数据导入Excel 365 [英] Import MySQL data to Excel 365

查看:189
本文介绍了将MySQL数据导入Excel 365的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将数据从MySQL数据库导入Excel 365(32位)工作簿.

I'm trying to import data from a MySQL Database to an Excel 365 (32 bit) Workbook.

这是我可以链接到的数据库,没有任何问题:

This is a DB I can link to without any issues :

这是我无法链接到的数据库:

This is the DB I can't link to :

我已经下载了以下连接器: MySQL Connector Net 6.10.6

I've downloaded the following connector : MySQL Connector Net 6.10.6

我怀疑这不是第二个DB的正确连接器. 错误是这样的:

I suspect that this is not the correct connector for the second DB. The error is this :

[MySQL: Unable to connect to any of the specified MySQL hosts.]

有人能指出我解决方案的开始吗?

Could someone point me to the beginning of a solution ?

我也尝试过通过VBA进行连接,但是我也收到了一个错误,该错误必须是由于与上述相同的原因所致.

I've also tried to connect via VBA but I also get an error which must be due to the same causes as above.

推荐答案

如果数据库服务器和数据库客户端(Excel)在不同的计算机上运行,​​则它们将无法通过UNIX文件系统套接字进行通信.

If the database server and the database client (Excel) are running on different machines then they cannot communicate via UNIX filesystem sockets.

如果在libmysql客户端中将localhost指定为目标主机,则该客户端将尝试通过(Unix)文件系统套接字进行连接.

If you specify localhost as the target host in a libmysql client, then the client will try to connect via the (Unix) filesystem socket.

反之,如果您指定127.0.0.1,它将使用TCP套接字.

On the other hand, if you instead specify 127.0.0.1, it will use a TCP socket.

  • Stack Overflow : How to connect to database when server is in Unix socket? (MySQL/PHP)

维基百科: Localhost

Wikipedia: Localhost

维基百科: Unix域套接字

维基百科: TCP套接字定义

MySQL.com:使用ODBC数据源管理员GUI在Windows上配置连接器/ODBC DSN

MySQL.com : Configuring a Connector/ODBC DSN on Windows with the ODBC Data Source Administrator GUI

根据您的评论,目标主机将在

In response to your comment, the target host would be specified in the location specified on this page, or it can also be installed via command line with these steps.

另外,您可能会发现有帮助:

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆