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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.