Cannot create PoolableConnectionFactory (Access denied for user 'api_test'@'223.198.171.138' (using password: YES))
时间: 2023-10-21 19:33:30 浏览: 149
This error message indicates that the user "api_test" is being denied access to the database from IP address "223.198.171.138" using the provided password.
Possible causes and solutions:
1. Incorrect username or password: Double-check that the username and password are correct and have the necessary privileges to access the database.
2. IP address not allowed: Check if the IP address of the client making the connection is allowed in the database server's firewall rules or in the user's account settings.
3. Database permissions: Verify that the user "api_test" has the necessary permissions to access the database.
4. Connection string errors: Check for any typos or syntax errors in the database connection string.
5. Network issues: Check for any network-related issues, such as connectivity or firewall problems, that may be preventing the connection from being established.
In summary, ensure that the user has the correct credentials and permission to access the database, the IP address is whitelisted, and there are no network or syntax issues.
阅读全文