问题原文
原帖链接 · Luke Cousins · CC BY-SA 4.0
We have an existing database user in our MariaDB 10.3 instance. We'd like to grant the user a couple of extra permissions, without any interruption to service.
I understand from the helpful answer here the basic process, but I'm concerned that between the execution of the REVOKE ALL PRIVILEGES... command and the GRANT ... command that the user will not have any access to the database. Is this correct? If so, is there a good way around this, other than creating a new user with a different username and migrating the application code to use this new user instead?
Thanks for your help.
已采纳解答
原帖链接 · Dom · CC BY-SA 4.0
If you modify the mysql database directely with UPDATE (in user and db tables), then use FLUSH PRIVILEGES command, you will not revoke anything. So no user interruption...
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
