18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Database Interface<br />

Using MySQL<br />

IWS can interface with MySQL databases, but to do so, you must install an ADO.Net provider for MySQL.<br />

The provider required by IWS is MySQL Connector/Net, and at the time of this writing, the necessary software<br />

can be downloaded from the official MySQL site. (Please note that the linked site is beyond our control and<br />

may change without notice.)<br />

Once the provider is installed, you can use the Database Configuration property sheet to configure a MySQL<br />

database connection. However, unlike for other database types, you cannot use the Data Link Properties dialog<br />

(which is accessed by clicking ... to the right of the Connection string box) to form the connection string. Instead,<br />

you must directly enter the connection string using this basic format:<br />

Provider=MYSQLCLIENT; Server=myServerAddress; Database=myDataBase; Uid=myUsername;<br />

Pwd=myPassword;<br />

The following optional parameters can be appended to the connection string:<br />

Optional parameters for the MySQL Connector/Net connection string<br />

Parameter<br />

Port=number;<br />

Server=myServerAddress1 & myServerAddress2<br />

& … & myServerAddressN;<br />

Encryption=true;<br />

Encrypt=true;<br />

Default Command Timeout=milliseconds;<br />

Connection Timeout=seconds;<br />

Ignore Prepare=true;<br />

Protocol=myProtocol;<br />

Shared Memory Name=MySQL;<br />

CharSet=UTF8;<br />

Description<br />

Specifies what port to use for the connection. The default port is 3306, but any<br />

port can be specified as long as it matches the server configuration.<br />

If a port of -1 is specified, then the connection will use the named pipes network<br />

protocol (see Protocol below).<br />

Use any server in a replicated server configuration.<br />

Enables SSL encryption for all data sent between the client and the server. The<br />

server must have a valid certificate installed.<br />

An alternative to Encryption above, in case there are errors.<br />

Specifies a default command timeout for the connection. This does not<br />

supercede any timeout properties on individual commands.<br />

Specifies how long the client will wait for a server connection before terminating<br />

the attempt.<br />

Instructs the database provider to ignore Command.Prepare<br />

statements, to prevent corruption from server-side prepared commands.<br />

Specifies which network protocol to use. The default is socket or tcp, but<br />

you can specify pipe to use a named pipes connection or memory to use<br />

a shared memory object.<br />

Specifies the name of the shared memory object to be used for communication.<br />

(This parameter applies only if the Protocol parameter above is set to<br />

memory.)<br />

Specifies which character set to use to encode queries to the server.<br />

Please note that query results are encoded in the same character set that the<br />

data itself is recorded.<br />

Note: These procedures were tested using MySQL v5.1.11 and MySQL Connector/Net v6.2.0.<br />

<strong>InduSoft</strong> Web Studio Page 513

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!