I just migrated a database to CloudSQL and trying to create users but with default settings for creating users from web UI, all my users are able to access all databases which is scary.
I tried using GRANTS like:
GRANT ALL ON user_production.* TO 'database_production'@'%';
It doesn't work though, regardless of the grants above, when I login via CLI MySQL client as any user, I can freely browse all databases with the same user.
Did I miss something? How do one limit CloudSQL's MySQL user to one particular database?