Your database clients continue to work once Cyral protection is added to your databases. Below, we show how to use the DataGrip client to connect to a Cyral-protected MySQL database.
In DataGrip, set up a new connection for MySQL. Provide the Data Source Properties values as noted below:
Host: Address of the Cyral sidecar, which may be a load balancer address. If the sidecar is reachable through an SSH tunnel, specify the host as 127.0.0.1
Port: Repository port of the Cyral sidecar, which
For Authentication, provide a username and password. For Username:
If not using SSO, provide the database user name;
If using Cyral SSO, provide the SSO user name and group, for example: bob@healthyheartsis.us:mathematician
For Password:
If not using SSO, provide user's usual database password;
If using Cyral SSO, provide the SSO token.
Next, set the connection properties. In the DataGrip initial page, locate your datasource, right click on it and select Properties (or Ctrl+Shift+Alt+S).
In the Advanced tab, set the following attributes:
authenticationPlugins:
com.mysql.cj.protocol.a.authentication.MysqlClearPasswordPlugin
defaultAuthenticationPlugin:
com.mysql.cj.protocol.a.authentication.MysqlClearPasswordPlugin
disabledAuthenticationPlugins:
com.mysql.cj.protocol.a.authentication.MysqlNativePasswordPlugin
Click on Test Connection to check if all is working.