Database
MySQL
Integrates the Configu MySQLConfigStore with MySQL.
- Name: MySQL
- Category: Database
Configuration
Configu needs to be authorized to access your MySQL database. Configu utilizes TypeORM under the hood to establish a connection with the database using data source options you need to supply.
Usage
.configu
store declaration
CLI examples
Upsert command
Eval and export commands
Common Errors and Solutions
-
Connection Timeout Troubleshooting
- Solution: Increase the
connectTimeout
oracquireTimeout
in the configuration options to handle long-running connection setups. Make sure the database is reachable from your application.
- Solution: Increase the
-
Authentication Failures
- Solution: Verify that the provided
username
andpassword
are correct, and that the user has the necessary permissions to access the specified database. Use a MySQL client to manually confirm the credentials.
- Solution: Verify that the provided
-
SSL Certificate Issues
- Solution: Ensure the correct paths for SSL certificates are provided if
ssl
is enabled. Verify that the certificates match the MySQL server’s configuration.
- Solution: Ensure the correct paths for SSL certificates are provided if
-
Database Permissions Problems
- Solution: Ensure that the database user has the required
READ
andWRITE
permissions for theconfig_store
table. Use the following SQL command to grant permissions:
- Solution: Ensure that the database user has the required
References
- Integration documentation: https://dev.mysql.com/doc
- TypeORM documentation: https://typeorm.io