13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Underst<strong>and</strong>ing the Privilege System in Detail<br />

289<br />

The user Table<br />

The user table contains details of global user privileges. It determines whether a user is<br />

allowed to connect to the <strong>MySQL</strong> server at all <strong>and</strong> whether she has any global-level<br />

privileges—that is, privileges that apply to every database in the system.<br />

You can see the structure of this table by issuing a describe user; statement.The<br />

schema for the user table is shown in Table 12.1.<br />

Table 12.1<br />

Field<br />

Schema of the user Table in the mysql Database<br />

Type<br />

Host<br />

User<br />

Password<br />

Select_priv<br />

Insert_priv<br />

Update_priv<br />

Delete_priv<br />

Create_priv<br />

Drop_priv<br />

Reload_priv<br />

Shutdown_priv<br />

Process_priv<br />

File_priv<br />

Grant_priv<br />

References_priv<br />

Index_priv<br />

Alter_priv<br />

Show_db_priv<br />

Super_priv<br />

Create_tmp_table_priv<br />

Lock_tables_priv<br />

Execute_priv<br />

Repl_slave_priv<br />

Repl_client_priv<br />

Create_view_priv<br />

Show_view_priv<br />

Create_routine_priv<br />

Alter_routine_priv<br />

Create_user_priv<br />

Event_priv<br />

varchar(60)<br />

varchar(16)<br />

varchar(41)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(’N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum(‘N’,’Y’)<br />

enum('N','Y')<br />

enum('N','Y')<br />

enum('N','Y')<br />

enum('N','Y')<br />

enum('N','Y')<br />

enum('N','Y')

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!