Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8052857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:40:08+00:00 2026-06-05T07:40:08+00:00

Suppose we have 2 users, A and B for a mysql DB customer. User

  • 0

Suppose we have 2 users, A and B for a mysql DB customer.

User A is having all the privileges on a particular DB ,
and user B is having some complex specific privileges like

GRANT SELECT,INSERT
    ->     ON customer.Table1
    ->     TO 'user B'@'server.domain'
    ->     IDENTIFIED BY 'pwrd'; 

Now if I run a query on customer DB on Table1 table, then will there be any difference in the execution times of the query when run separately each through User A and User B ?

And how does the Privileges are actually checked at the time of the query execution or they are checked at the time of connection building itself and stored some where else?

what I know is that the privileges are stored in table named as ‘user (Host,User,Password)’ .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:40:11+00:00Added an answer on June 5, 2026 at 7:40 am

    Permissions are checked for the login user at compile time of sql statement just before executing a sql statement.

    The permissions are checked for only the resources e.g. table, views, stored procedure, functions used in that particular sql statement.

    User’s Priviledges or user level does not affect the execution time.

    When a user tries to connect to the database, MySQL checks that that particular username/host/password combination has permission to connect. Once the connection has been made, before any operations are carried out, MySQL again checks to see whether the user/host combination has the right level of access to carry out that operation. The user table is the first table MySQL checks. All user/host/password combinations must be listed in this table before any access can be granted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a table of users. Something like: ID integer, USER text, POSITION
Lets suppose that I have some pages some.web/articles/details/5 some.web/users/info/bob some.web/foo/bar/7 that can call a
Suppose we have a menu which presents the user with some options: Welcome: 1)
Suppose you have a table like this: id user score It's a dump of
Suppose a huge database. For example I have more than 4294967295(for mysql INT) users.
Suppose I have a table (MySQL) like this: CREATE TABLE sessions ( session_id INT
Suppose I have a table as follows in MySQL: create table user(name varchar(20), join_time
Suppose I have a user defined type: CREATE OR REPLACE TYPE TEST_TYPE AS OBJECT
Suppose I have the following models: class User(models.Model): pass class A(models.Model): user = models.ForeignKey(User)
How to get user roles from Membership provider? Suppose I have a username and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.