Fixed GRANT queries for the controluser.
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2003-03-25 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||
* Documentation.html: Fixed GRANT queries for the controluser.
|
||||
|
||||
2003-03-25 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* main.php3: replace the 'USE mysql' test, as users with a global
|
||||
priv like CREATE TEMPORARY TABLES can do a 'USE mysql'
|
||||
|
@@ -241,23 +241,38 @@
|
||||
<pre>
|
||||
|
||||
GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'pmapass';
|
||||
GRANT SELECT (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)
|
||||
ON mysql.user TO 'pma'@'localhost';
|
||||
GRANT SELECT (
|
||||
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
|
||||
) ON mysql.user TO 'pma'@'localhost';
|
||||
GRANT SELECT ON mysql.db TO 'pma'@'localhost';
|
||||
GRANT SELECT ON mysql.host TO 'pma'@'localhost';
|
||||
GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv)
|
||||
ON mysql.tables_priv TO 'pma'@'localhost';
|
||||
</pre>
|
||||
If you are using an old MySQL version (below 4.0.2), please use this
|
||||
query instead of the second one:
|
||||
<pre>
|
||||
|
||||
</pre>
|
||||
GRANT SELECT (
|
||||
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
|
||||
) ON mysql.user TO 'pma'@'localhost';
|
||||
</pre>
|
||||
... and if you want to use the many new relation and bookmark
|
||||
features:
|
||||
<pre>
|
||||
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON <pma_db> TO 'pma'@'localhost';
|
||||
</pre>
|
||||
(this of course requires you to have a special DB for
|
||||
phpMyAdmin, the contents will be explained later)
|
||||
(this of course requires you to have a special DB for phpMyAdmin, the
|
||||
contents will be explained later)<br />
|
||||
Of course, the above queries only work if your MySQL version supports
|
||||
the GRANT command. This is the case since 3.22.11.
|
||||
</li>
|
||||
<li>
|
||||
Then each of the <i>true</i> users should be granted a set of
|
||||
|
Reference in New Issue
Block a user