Comments - revoking drop privileges
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
Hi,
you didn't show output of
show grant for myUser@localhost
, but let's look in the example.Consider this example where we have some user
mu@localhost
,which in beginning has no privileges:Now if you want to connect to some specific database
myTest
you can'tBut, by default you can connect to database
test
which is according to my opinion out of scope*
and there you can do what ever you want (create, update, drop
) even without privileges:So let's consider now one specific database
mytest
:We can see that we now don't have only
DROP
privilege, so let's try to drop table with specific user:With this we can verify that
REVOKE
is working like stated in documentation.<<priv_type = DROP>>
ON<<priv_level=mytest.*>>
FROM <<user=mu
>>