Page tree
Skip to end of metadata
Go to start of metadata

葡萄城报表系统支持市场上所有的关系型数据库,对于任何提供有ODBC驱动程序的数据库类型,均可采用ODBC数据源类型。


定义ODBC数据源的步骤如下:

(1)在数据源的【类型】处选择"Microsoft Odbc Provider"。

(2)在【连接字符串】中,根据数据库类型的不同,输入相应的连接字串。

典型的几种数据库的ODBC连接字串形式如下:

MySQL数据库:
Driver={MySQL ODBC 5.3 UNICODE Driver}; Server=?; Database=?; User=root; Password=???; Option=3;

如:

Driver={MySQL ODBC 5.3 UNICODE Driver}; Server=192.168.1.23; Database=MyDb; User=root; Password=123; Option=3;

IBM DB2数据库:
Driver={IBM DB2 ODBC DRIVER}; Database=?; Hostname=?;Port=?; Protocol=TCPIP;Uid=?;Pwd=???;
如:
Driver={IBM DB2 ODBC DRIVER}; Database=Sample; Hostname=localhost; Port=50000; Protocol=TCPIP;Uid=db2admin;Pwd=123456;

(3)点击【连接测试】按钮验证连接字串的正确性,再点击【保存】按钮。



  • No labels