I created a user in Cloud SQL MySQL with iam auth. The user also exists in GCP and has Cloud SQL Client and Cloud SQL Instance User permissions.
When I try to login with this user, I am prompted for a password. I know that in such cases I just need to hit enter and then I am asked if I want to save the password. Hitting enter one more time lets me in to the DB.
However, with this particular user, hitting enter gives me the following error:
➜ ~ mysqlsh --host=127.0.0.1 --user=USER
Please provide the password for 'USER@127.0.0.1':
MySQL Shell 9.0.1
Copyright (c) 2016, 2024, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.
Type '\help' or '\?' for help; '\quit' to exit.
Creating a session to 'USER@127.0.0.1'
MySQL Error 1045 (28000): Access denied for user 'USER'@'cloudsqlproxy~xx.xxx.xx.xxx' (using password: YES)
I verified the following several times:
Any ideas where to look or what might be causing this?
Hi @Nivi,
Welcome to Google Cloud Community!
Based on this MySQL documentation, the error message you’re encountering might be related to a server issue due to a combination of factors, such as how user privileges are configured in the database, insufficient permissions for your username, or issues related to connections to MySQL databases. You also mentioned that you have already verified various possible causes for the error.
Here are some potential workarounds that might help resolve the issue:
If the workarounds above don't work, you can contact Google Cloud Support for a more in-depth analysis. When contacting them, please provide comprehensive details and include screenshots. This will help them better understand and address your issue.
I hope the above information is helpful.