MySQL Troubleshooting¶
When Test connection or an operation fails on a MySQL datastore, the error message points to the layer that failed: the credentials, the grants, or the connection to the server.
Problems every connector shares
A server that cannot be reached, a red status dot, a credential changed at the source, Secrets Management errors, an empty schema list, missing tables, and a blocked deletion are covered on Source Datastore Troubleshooting. This page covers the errors specific to MySQL.
Common Errors¶
| Error | Likely Cause | Fix |
|---|---|---|
Access denied for user |
Incorrect username, password, or the user does not have access from the connecting host | Verify credentials and ensure the user is created with ’%’ or the specific Qualytics host IP |
Host is not allowed to connect |
The MySQL server rejects connections from the Qualytics host IP | Create the user with ’qualytics_read’@’<qualytics_ip>’ or use ’%’ for any host |
SELECT command denied to user |
The user lacks SELECT on the target database |
Run GRANT SELECT ON <database_name>.* TO ‘<user>’@’%’ |
CREATE command denied to user |
The enrichment user lacks CREATE on the database |
Run GRANT CREATE ON <database_name>.* TO ‘<user>’@’%’ |
SSL connection is required |
The MySQL server enforces SSL but the connection is not configured for it | Enable SSL in the connection parameters or configure the MySQL user to not require SSL |
Detailed Notes¶
Authentication Errors¶
The error Access denied for user indicates that the credentials are incorrect or the user does not have access from the connecting host.
Common causes:
- Incorrect password: the password does not match the one set for the user.
- Host restriction: the user was created with a specific host (e.g.,
'user'@'localhost') but Qualytics connects from a different IP. - User does not exist: the username was misspelled or was never created.
Note
MySQL differentiates users by both username and host. 'qualytics'@'localhost' and 'qualytics'@'%' are treated as two separate users with potentially different passwords and permissions.
Permission Errors¶
The error SELECT command denied to user means the user authenticated successfully but lacks the necessary grants on the target database.
Common causes:
- Missing
SELECTgrant: the user does not haveSELECTon the target database. - Wrong database: the user has permissions on a different database than the one specified in the connection form.
- Grant not flushed: after running
GRANTstatements,FLUSH PRIVILEGESwas not executed.
Connection Errors¶
The error Host is not allowed to connect means the MySQL server rejects the connection from the Qualytics host IP.
Common causes:
- User host restriction: the user was created with
'user'@'localhost'instead of'user'@'%'. - Firewall or network: a firewall is blocking connections on port 3306.
- Bind address: MySQL is configured to listen only on
127.0.0.1(bind-addressinmy.cnf).