概述
- 身份認(rèn)證模塊,即MySQL客戶端通過指定用戶名,密碼,主機(jī)名來連接MySQL服務(wù)器,主要是認(rèn)證給定的用戶是否有權(quán)限連接MySQL服務(wù)器,而權(quán)限控制模塊主要用于控制已經(jīng)通過身份認(rèn)證的用戶對數(shù)據(jù)庫、數(shù)據(jù)庫表、數(shù)據(jù)表的列的訪問權(quán)限。針對數(shù)據(jù)庫,數(shù)據(jù)表和數(shù)據(jù)表的列的訪問控制主要在mysql數(shù)據(jù)庫的user表進(jìn)行定義,如下是user表的完整字段集合:
| Host | User | Select_priv | Insert_priv | Update_priv | Delete_priv | Create_priv | Drop_priv | Reload_priv |
Shutdown_priv | Process_priv | File_priv | Grant_priv | References_priv | Index_priv | Alter_priv |
Show_db_priv | Super_priv | Create_tmp_table_priv | Lock_tables_priv | Execute_priv | Repl_slave_priv |
Repl_client_priv | Create_view_priv | Show_view_priv | Create_routine_priv | Alter_routine_priv |
Create_user_priv | Event_priv | Trigger_priv | Create_tablespace_priv | ssl_type | ssl_cipher | x509_issuer |
x509_subject | max_questions | max_updates | max_connections | max_user_connections | plugin |
authentication_string | password_expired | password_last_changed | password_lifetime |
account_locked |
標(biāo)簽:MySQLShutdown_priv | Process_priv | File_priv | Grant_priv | References_priv | Index_priv | Alter_priv |
Show_db_priv | Super_priv | Create_tmp_table_priv | Lock_tables_priv | Execute_priv | Repl_slave_priv |
Repl_client_priv | Create_view_priv | Show_view_priv | Create_routine_priv | Alter_routine_priv |
Create_user_priv | Event_priv | Trigger_priv | Create_tablespace_priv | ssl_type | ssl_cipher | x509_issuer |
x509_subject | max_questions | max_updates | max_connections | max_user_connections | plugin |
authentication_string | password_expired | password_last_changed | password_lifetime |
account_locked |