![]() |
VOOZH | about |
OData is a major protocol enabling real-time communication among cloud-based, mobile, and other online applications. The CData API Server provides MySQL data to OData consumers like TIBCO Spotfire. This article shows how to use the API Server and Spotfire's built-in support for OData to access MySQL data in real time.
If you have not already done so, download the CData API Server. Once you have installed the API Server, follow the steps below to begin producing secure MySQL OData services:
To work with MySQL data from TIBCO Spotfire, we start by creating and configuring a MySQL connection. Follow the steps below to configure the API Server to connect to MySQL data:
The CData Provider supports connecting to on-premises and cloud-hosted versions of MySQL such as Amazon RDS for MySQL, Google Cloud SQL for MySQL, Azure Database for MySQL, or Oracle MySQL HeatWave. The Server and Port properties must be set to a MySQL server. If IntegratedSecurity is set to false, then User and Password must be set to valid user credentials. Optionally, Database can be set to connect to a specific database. If not set, tables from all databases will be returned.
You can use SSH (Secure Shell) to authenticate with MySQL, whether the instance is hosted on-premises or in supported cloud environments. SSH authentication ensures that access is encrypted (as compared to direct network connections).
To connect to MySQL via SSH in Password Auth mode, set the following connection properties:
To connect to MySQL via SSH in Password Auth mode, set the following connection properties:
Next, create a user to access your MySQL data through the API Server. You can add and configure users on the Users page. Follow the steps below to configure and create a user:
Having created a user, you are ready to create API endpoints for the MySQL tables:
Having configured a connection to MySQL data, created a user, and added resources to the API Server, you now have an easily accessible REST API based on the OData protocol for those resources. From the API page in API Server, you can view and copy the API Endpoints for the API:
π API Endpointshttp://localhost:8080/api.rsc
If you want to load the data into memory and process the data locally, click the Import Data Table option. This option is better for offline use or if a slow network connection is making your dashboard less interactive.
After adding several visualizations in the Recommended Visualizations wizard, you can make other modifications to the dashboard. For example, you can apply a filter: After clicking the Filter button, the available filters for each query are displayed in the Filters pane.
Learn more or sign up for a free trial:
CData API Server