How to set datasource for MySQL database in Microsoft SQL Report Builder 3.0?

99封情书 提交于 2021-02-07 04:18:52

问题


I am using Microsoft SQL Server Report Builder 3.0. And I have remote Linux Server(with certain IP) that have MySQL database. I want connect this MySQL database from Report Builder (in my PC), So that I can create some reports about it. How can i do that? Please help and Thanks.


回答1:


First, you need to download and install (32-bit or 64-bit) appropriate MySQL connector.

MySQL ODBC connector

After installation, you need to create ODBC Data Source Name (DSN) on this way:

  1. Open Control Panel -> Administrative Tools -> ODBC Data Sources (32-bit or 64-bit, depending of installed connector)
  2. Choose System DSN tab and click on Add
  3. In dialog window, choose installed connector for MySQL
  4. In new dialog window populate Data source name field with descriptive name, fill MySQL server address and port (IP address or server network name) and fill credentials that have enough permissions to MySQL server. Catalog field is optional field. Test the connection.
  5. Open Microsoft Report Builder 3.0, and create new report. While creating dataset, you need to choose data source. Click New Data Source (or just New) and in the dialog window for Connection type, choose ODBC and in the Connection string choose Build option.
  6. In new dialog window, in Data source specification section choose your DSN that you created in stages 2, 3 and 4 and test connection.
  7. Voila :)


来源:https://stackoverflow.com/questions/36495451/how-to-set-datasource-for-mysql-database-in-microsoft-sql-report-builder-3-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!