The user account of MYSQL database manages ABC (1)
Tuesday, March 03, 2009 by rain
? ? accredit expresses content
Any global prerogatives that ? ? User can join the user of the server and they are had
The prerogative of database class of ? ? Db
? ? Tables _ Priv expresses class prerogative
? ? C O L Um N S _ Priv lists class prerogative
? ? still has the fiveth accredit to express (Host) ,But the effect that it does not suffer GRANT or REVOKE.
When ? ? issues GRANT statement for a certain user when you,One should be founded for this user in User watch.If this statement assigned privilege of all overall situation (administrative limits of authority or the limits of authority that are used at all databases) ,Criterion these designation also be by the record in User watch.If appointed the attributive of database, watch or row,They are the record in Db, Tables_priv and Columns_priv watch.
? ? use GRANT and REVOKE sentence are lighter than revising accredit to express directly.But,Suggest you had better complement through reading the 12nd rule the content of this chapter,The bat around in the 12nd chapter accredit is expressed.These watches are very important,Serving as an administrator to should know these tables is how to be what GRANT and go to work of form of REVOKE statement make.
The Zhang number that ? ? will discuss below the section how to install MySQL user partly originally and accredit,How to still cancel the introduction attributive and delete all user from inside accredit watch,The difficult problem that and will consider puzzles a lot of new MySQL managers.
You consider ? ? even use Mysqlaccess and Mysql_setpermission script,They are the component that MySQL issues a package.These script that are Perl,The substitute that they provided the GRANT statement that sets user Zhang date.The supportive environment that Mysql_setpermission needs to have DBI.
? ?Found new user and accredit
The grammar of statement of ? ? GRANT is as follows:
? ? GRANT Privileges (columns)
? ? ON What
? ? TO User IDENTIFIEDBY "password "
? ? WITH GRANT OPTION
? ? should use this statement,Need fills in to be divided with bottom:
The attributive of user of admeasure of cent of ? ? Privileges.Next watches listed the limits of authority that can use in GRANT statement shows symbol:
? ? attributive shows the operation that accord with attributive allows
...