Does User Privileges affects the execution time of my mysql query -
suppose have 2 users, , b mysql db customer.
user having privileges on particular db , , user b having complex specific privileges
grant select,insert -> on customer.table1 -> 'user b'@'server.domain' -> identified 'pwrd';
now if run query on customer db on table1 table, there difference in execution times of query when run separately each through user , user b ?
and how privileges checked @ time of query execution or checked @ time of connection building , stored else?
what know privileges stored in table named 'user (host,user,password)' .
permissions checked login user @ compile time of sql statement before executing sql statement.
the permissions checked resources e.g. table, views, stored procedure, functions used in particular sql statement.
user's priviledges or user level not affect execution time.
when user tries connect database, mysql checks that particular username/host/password combination has permission connect. once connection has been made, before operations carried out, mysql again checks see whether user/host combination has right level of access carry out operation. user table first table mysql checks. user/host/password combinations must listed in table before access can granted.
Comments
Post a Comment