2016-11-09 150 views
0

我正嘗試使用Crystal Reports創建報告,並且首先需要連接到我的本地MySQL數據庫。無法使用Crystal Reports連接到本地MySQL數據庫

enter image description here

我使用這個數據庫連接字符串:

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

我得到這個錯誤:安裝

enter image description here

連接器和MySQL數據庫是存在的。

回答

0
  • 開始>>搜索用戶DSN單擊添加>>搜索MySQL的ODBC微軟ODBC管理
  • (如果沒有找到接近>>右鍵點擊微軟ODBC管理>>性能>>設定的目標爲「C: \ Windows \ SysWOW64 \ odbcad32.exe「)
  • 設置數據源名稱= localhost >> tcp/ip = 127.0.0.1 >> port = 3306 >> user = admin >> password = admin123
  • click test >> select database = mcs >> ok
  • 打開數據庫專家對水晶報表>>新建連接>> odbc
  • 檢查選擇數據源>>選擇您的數據源名稱>>完成