Establishing a Connection
Configure a Connection Profile
From the CData ribbon, click Get Data and select From MariaDB connection/s to launch the CData Query window. To setup a new connection, you will have to click the New MariaDB Connection button. Here you can set the connection settings, test the connection, and save the connection profile.
Connecting to MariaDB
The Server and Port properties must be set to a MariaDB server. Optionally, Database can be set to connect to a specific database. If not set, the add-in reports tables from all databases.
Azure AD
Azure AD is Microsoft’s multi-tenant, cloud-based directory and identity management service. It is user-based authentication that requires that you set AuthScheme to AzureAD.
Desktop Applications
CData provides an embedded OAuth application that simplifies authentication at the desktop. You can also authenticate from the desktop via a custom OAuth application, which you configure and register at the MariaDB console. For further information, see Creating a Custom OAuth Application.Before you connect, set the following variables:
- InitiateOAuth: GETANDREFRESH. Used to automatically get and refresh the OAuthAccessToken.
- Custom Azure AD applications only:
- OAuthClientId: The client Id assigned when you registered your custom OAuth application.
- OAuthClientSecret: The client secret assigned when you registered your custom OAuth application.
- CallbackURL: The redirect URI defined when you registered your custom OAuth application.
When you connect, the add-in opens the MariaDB'sOAuth endpoint in your default browser. Log in and grant permissions to the application.
When the access token expires, the add-in refreshes it automatically.
LDAP
To authenticate as an LDAP user, set AuthScheme to LDAP.Your LDAP credentials are auto-detected by default. If you want to designate a different user and account, set the following optional properties:
- User: The user to login as.
- Password: The user's password.
Connection Properties
The Connection properties describe the various options that can be used to establish a connection.
Managing Connections
After successfully authenticating to MariaDB you will be able to customize the data you are importing. To learn more about this, see Managing Connections.
See Also
- Querying Data: Use the data selection wizard to pull data into a spreadsheet. You can also configure scheduled data refresh here.
- Using the Excel Add-In: Find other ways to interact with MariaDB data, such as using the available CData Excel Functions.