summaryrefslogtreecommitdiff
path: root/Docs/manual.de.texi
diff options
context:
space:
mode:
authorunknown <arjen@fred.bitbike.com>2002-05-17 13:36:38 +1000
committerunknown <arjen@fred.bitbike.com>2002-05-17 13:36:38 +1000
commit0cfafb7388da97afdc6f4d1e7529011e15643c3d (patch)
tree24bb21821a77d19beef0fa4be05e94071b138d91 /Docs/manual.de.texi
parent66f426c0635d16f7f594f6bf867e13e5cba18500 (diff)
downloadmariadb-git-0cfafb7388da97afdc6f4d1e7529011e15643c3d.tar.gz
Re-merging and fixups of new User Resources section.
Docs/manual.de.texi: Copied new section to German manual (to be translated). Docs/manual.texi: Re-merged Monty's additions with Arjen's original fixups.
Diffstat (limited to 'Docs/manual.de.texi')
-rw-r--r--Docs/manual.de.texi68
1 files changed, 66 insertions, 2 deletions
diff --git a/Docs/manual.de.texi b/Docs/manual.de.texi
index 798eb7616f6..6dc81862f72 100644
--- a/Docs/manual.de.texi
+++ b/Docs/manual.de.texi
@@ -16998,6 +16998,7 @@ neu starten, um @code{mysqldump} benutzen zu können.
* Privilege changes::
* Default privileges::
* Adding users::
+* User resources::
* Passwords::
* Password security::
@end menu
@@ -17653,7 +17654,7 @@ müssen Sie sie aus Ihrer MySQL-Distribution zurück kopieren, bevor Sie
@code{mysql_install_db} laufen lassen.
-@node Adding users, Passwords, Default privileges, User Account Management
+@node Adding users, User resources, Default privileges, User Account Management
@c German node Benutzer hinzufügen
@subsection Neue MySQL-Benutzer hinzufügen
@@ -17862,8 +17863,71 @@ einzufügen, zu ändern und zu aktualisieren. Sie finden diese Werkzeuge unter
@uref{http://www.mysql.com/downloads/contrib/,Contrib-Verzeichnis der
MySQL-Website}.
+@node User resources, Passwords, Adding users, User Account Management
+@c New section added by arjen 2002-05-17 to keep en/de in sync
+@subsection Limiting user resources
-@node Passwords, Password security, Adding users, User Account Management
+@c FIX Original section text - to be translated.
+@c FIX Also check manual.texi for other mentions of MAX_..._PER_HOUR
+
+Starting from MySQL 4.0.2 one can limit certain resources per user.
+
+So far, the only available method of limiting user usage of MySQL
+server resources has been setting the @code{max_user_connections}
+startup variable to a non-zero value. But this method is strictly
+global and does not allow for management of individual users, which
+could be of paricular interest to Internet Service Providers.
+
+Therefore, management of three resources is introduced on the
+individual user level:
+
+@itemize @bullet
+@item Number of all queries per hour:
+All commands that could be run by a user.
+@item Number of all updates per hour:
+Any command that changes any table or database.
+@item Number of connections made per hour:
+New connections opened per hour.
+@end itemize
+
+A user in the aforementioned context is a single entry in the
+@code{user} table, which is uniquely identified by its @code{user}
+and @code{host} columns.
+
+All users are by default not limited in using the above resources,
+unless the limits are granted to them. These limits can be granted
+@strong{only} via global @code{GRANT (*.*)}, using this syntax:
+
+@example
+GRANT ... WITH MAX_QUERIES_PER_HOUR = N1
+ MAX_UPDATES_PER_HOUR = N2
+ MAX_CONNECTIONS_PER_HOUR = N3;
+@end example
+
+One can specify any combination of the above resources.
+N1, N2 and N3 are integers and stands for count / hour.
+
+If user reaches any of the above limits withing one hour, his
+connection will be terminated or refused and the appropriate error
+message shall be issued.
+
+Current usage values for a particular user can be flushed (set to zero)
+by issuing a @code{GRANT} statement with any of the above clauses,
+including a @code{GRANT} statement with the current values.
+
+Also, current values for all users will be flushed if privileges are
+reloaded (in the server or using @code{mysqladmin reload})
+or if the @code{FLUSH USER_RESOURCES} command is issued.
+
+The feature is enabled as soon as a single user is granted with any
+of the limiting @code{GRANT} clauses.
+
+As a prerequisite for enabling this feature, the @code{user} table in
+the @code{mysql} database must contain the additional columns, as
+defined in the table creation scripts @code{mysql_install_db} and
+@code{mysql_install_db.sh} in @file{scripts} subdirectory.
+
+@node Passwords, Password security, User resources, User Account Management
@c German node Passwörter
@subsection Passwörter einrichten