.
( , )
CREATE VIEW test SELECT * from originaldatabase.tablename
...
NewDatabase whith
GRANT NewDatabase. * To 'testuser' @'localhost'
, .
, USER() WHERE :
:
* from original.customer, mysql_user = USER()
In the original order, you should have a mysql_user column and each row that the user under test can see should have testuser @localhost as an entry
The tester will see all created views in the form of tables in the database 'test'
source
share