tidb
tidb copied to clipboard
[bug] Inconsistent behavior of grant command between MySQL and TiDB
- What did you do? when trying to create different user and different databases, I encountered a inconsistent behavior of grant command between MySQL and TiDB.
To reproduce this, follow the steps below
create database db123;grant select,insert,delete on db123.* to '123' identified by 'test';- login with
123:test show databases;there are two databasesinformation_schema,db123use information_schema;select * from tables;
tables that not belongs to user 123 appears in the result of last command;
while MySQL behaves normal, user 123 cannot see anything belongs to others.
- What version of TiDB are you using (
tidb-server -V)?
Git Commit Hash: 37d8ea3e38209d0f49a0f46c649220f8877b9fd8 UTC Build Time: 2017-07-19 02:19:35
@tiancaiamao PTAL
Thanks for your feedback! We'll fix it later. @mengjinglei
This was fixed in https://github.com/pingcap/tidb/pull/6426
I believe this issue can be closed :-)
Closing since this is already fixed.