user table row.
user table are insufficient, the server determines the user's database-specific privileges by checking the db and host tables.
db table for a match on the Host, Db, and User columns.
Host and User columns are matched to the connecting user's hostname and MySQL username.
Db column is matched to the database that the user wants to access.
Host and User, access is denied.
db table row and its Host column is not blank, that row defines the user's database-specific privileges.
db table row's Host column is blank, it signifies that the host table enumerates which hosts should be allowed access to the database.
host table to find a match on the Host and Db columns.
host table row matches, access is denied.
db and host table entries.
db table row and then selectively restrict them on a host-by-host basis using the host table entries.
db and host table entries, the server adds them to the global privileges granted by the user table.
tables_priv and columns_priv tables, adds those to the user's privileges, and allows or denies access based on the result.
procs_priv table rather than tables_priv and columns_priv.
When do privilege changes take effect?
© 2007 John Michael Pierobon