I have a server, that was created for me.
On it there is a schema called “test”.
I’ve logged in with root user, and created a new schema called “WEB”.
create schema WEB;
What I want to do now, is to have a user, that can only see that new schema.
So I created a user like so:
create user webtestuser identified by 'webtestuser';
grant select, insert, update, delete on WEB.* to webtestuser;
The problem is that when I log in with the new user, I can still see the “test” schema. Even when I ‘revoke all’ on the user, that schema is still visable.
Anything I’m missing here?
Thanks !
By default mysql comes shipped with some grants foro the test schemas defined. They are
ALL ON testto all users and alsoALL ON test\_%to all users (test\_%matches stuff liketest_foo,test_123)Because of the way they’re defined I can’t see a way of removing these grants using the
REVOKE ... FROMsyntax so you’ll have to use the following: