Firstly, apologies for what I assume is a really basic question. Google doesn't seem to have an answer that applies to my needs here, but I feel like I'm missing something painfully obvious. Aside from recreating a user on every individual database, is there a concise way to do what I want? I'm looking for something like.
GRANT SELECT ON (SHOW DATABASES) TO user_foo;
As mention, you can use below query:
GRANT SELECT ON *.* TO 'user'@'localhost';
All you need can be found in this link: my sql grant user permissions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With