【问题标题】:Can't connect to local MySQL database using Crystal Reports无法使用 Crystal Reports 连接到本地 MySQL 数据库
【发布时间】:2016-11-09 22:05:12
【问题描述】:

我正在尝试使用 Crystal Reports 创建一个报表,这首先需要连接到我的本地 MySQL 数据库。

我正在使用这个数据库连接器字符串:

Driver={MySQL ODBC 5.3.6 Driver};Server=localhost:3306;Database=mcs;User=admin;Password=admin123;Option=3

我收到此错误:

连接器已安装,并且 MySQL 数据库在那里。

【问题讨论】:

    标签: mysql crystal-reports odbc connection-string


    【解决方案1】:
    • 开始 >> 搜索 microsoft odbc 管理员
    • 在用户dsn上单击添加>>搜索mysql odbc(如果没有找到关闭>>右键单击microsoft odbc管理员>>属性>>将目标设置为“C:\Windows\SysWOW64\odbcad32.exe”)
    • 设置数据源名称=localhost >> tcp/ip=127.0.0.1 >> port=3306 >> user=admin >> password=admin123
    • 点击测试>>选择数据库=mcs>>确定
    • 水晶报表开数据库专家>>建立新连接>>odbc
    • 检查选择数据源>>选择您的数据源名称>>完成

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-28
      • 2011-10-22
      • 1970-01-01
      • 1970-01-01
      • 2018-05-24
      • 2020-10-14
      相关资源
      最近更新 更多