By default, there is no limit on the number of times that a client can connect to the server or the number of queries it can issue. If that is not suitable, GRANT can establish limits on an account's resource consumption for the following characteristics:
Each of these resource limits is specified using an option in a WITH clause. The following example creates an account that can use the test database, but can connect to the server a maximum of only 10 times per hour. The account can issue 50 queries per hour, and at most 20 of those queries can modify data: GRANT ALL ON test.* TO 'quinn'@'localhost' The order in which you name the options in the WITH clause doesn't matter. To reset an existing limit to the default of no limit, specify a value of zero. For example: GRANT USAGE ON *.* TO 'quinn'@'localhost' WITH MAX_CONNECTIONS_PER_HOUR 0; Please check back next week for the continuation of this article.
blog comments powered by Disqus |