无法使用Crystal Reports连接到本地MySQL数据库 [英] Can't connect to local MySQL database using Crystal Reports

查看:210
本文介绍了无法使用Crystal Reports连接到本地MySQL数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Crystal Reports创建报告,这首先需要连接到本地MySQL数据库.

I'm trying to create a report using Crystal Reports and that first requires connecting to my local MySQL Database.

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

I'm using this database connector string:

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

我收到此错误:

连接器已安装,并且MySQL数据库已存在.

The connector is installed and the MySQL database is there.

推荐答案

  • 开始>>搜索Microsoft odbc管理员
  • 在用户dsn上单击添加>>搜索mysql odbc(如果找不到,请关闭>>右键单击microsoft odbc管理员>>属性>>将目标设置为"C:\ Windows \ SysWOW64 \ odbcad32.exe")
  • 设置数据源名称=本地主机>> tcp/ip = 127.0.0.1 >>端口= 3306 >>用户=管理员>>密码= admin123
  • 点击测试>>选择数据库= mcs >>确定
  • 打开水晶报表数据库专家>>建立新连接>> odbc
  • 检查选择数据源>>选择您的数据源名称>>完成
    • start >> search microsoft odbc administrator
    • on user dsn click add >> search mysql odbc (if not found close >> right click on microsoft odbc administrator >> properties >> set target to "C:\Windows\SysWOW64\odbcad32.exe")
    • set data source name=localhost >> tcp/ip=127.0.0.1 >> port=3306 >> user=admin >> password=admin123
    • click test >> select database=mcs >> ok
    • open database expert on crystal report >> make new connection >> odbc
    • check select data source >> choose your data source name >> finish
    • 这篇关于无法使用Crystal Reports连接到本地MySQL数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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