Requirements
Networking
Certain ports must be accessible to connect to Formal Resources. You can listen on multiple ports simultaneously for various Resources. For accessing MySQL, you may assign any port except 8080 (Connector’s health check port). Ensure your security groups are configured to allow traffic on the designated port.Database Health Check
Formal periodically assesses the health of the database. Specify the database to use for the health check by entering its name. If no database health check is configured (see Database Health Check Configuration), the system will default to using the mysql database.Connect to MySQL
MySQL CLI
To connect using the mysql command-line client, execute the following command:You can access your Formal Credentials in the Control Plane.
Policy Evaluation
Formal supports the following policy evaluation stages for MySQL:- Session: Evaluate and enforce policies at connection time
- Pre-Request: Evaluate and enforce policies before query execution
- Post-Request: Evaluate and enforce policies after data retrieval