Before you configure the connection to the SQL database with the , the following steps need to be executed:
Step 1: Set up the PC on which you intend to install the SQL Gateway.
Step 2: Set up your SQL database.
Step 3: Install the SQL Gateway.
To configure a connection to a MySQL database, you first have to configure a general for . In a second step, configure one or more to specific MySQL databases that are accessible via the .
This procedure describes how to define the access to a MySQL database server:
Step |
Action |
Remark |
---|---|---|
1 |
In the SQL Gateway, right-click the node in the tree structure on the left-hand side and execute the command . tab of the |
Result: A new subnode with a default name is created. |
2 |
Enter a unique in order to identify this database server. |
– |
3 |
Select from the list. |
After you have selected as , the configuration parameters described in this chapter are displayed. |
4 |
Enter the in order to identify the PC on which the database server is running. |
If the MySQL server is running on the same PC as the SQL Gateway, enter If the MySQL server is running on a different PC, enter the computer name of the remote PC or the IP address. |
5 |
As MySQL user account to be used for accessing the MySQL database. , enter the login name of the |
– |
6 |
Enter the MySQL user account to be used for accessing the MySQL database. of the |
– |
7 |
Select the MySQL database server from the list. to access the |
Select the connection protocol that is used by the MySQL database server:
|
8 |
Click the button in order to verify whether the connection to the database server can be established with the parameters configured. : A message is displayed indicating the result of the test. For further information, refer to the |
– |
This procedure describes how to create a connection to a specific MySQL database:
Step |
Action |
Result/Remark |
---|---|---|
1 |
In the SQL Gateway, right-click the node in the tree structure on the left-hand side and execute the command . tab of the |
Result: A new subnode with a default name is created. |
2 |
Enter a unique in order to identify this database connection. |
Make sure that exactly the value of the parameter is used in the client configuration:The element wsDbConnectionName configured in the EcoStruxure Machine Expert SqlRemoteAccess library must have the identical value as the parameter . |
3 |
From the MySQL database server that hosts the MySQL database you want to connect to. list, select the |
The list contains entries for those servers that are defined under the node.After you have selected a MySQL database server as , the configuration parameters described in this chapter are displayed. |
4 |
Enter the MySQL database. of the |
Some MySQL tools (such as MySQL Workbench) use the term Schema to refer to the database. |
5 |
In order to add further parameters to the configuration of your MySQL database connection, click the button and activate the parameters of your choice in the dialog box. |
Result: After you have confirmed your selection with , the selected parameters will be displayed in the editor and can be configured. |
6 |
Click the button in order to verify whether the connection to the database can be established with the parameters configured. |
Result: A message is displayed indicating the result of the test. For further information, refer to the Troubleshooting chapter. |