Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to keep track of queries/user/hour and connections/hour

Status
Not open for further replies.

farley99

MIS
Feb 12, 2003
413
US
I noticed powweb keeps track of queries/user/hour and connections/hour, for each account with them, how do they do this?

MySQL: 1 MySQL database is included per package. Each additional database has a one time setup fee of $10. 3 user limit per database, 36,000 queries/user per hour and 3,600 connections per hour.
 
I'm not familiar with the particular piece of software you're talking about.

But in general, you use user-defined script functions to perform database accesses. And those functions can have extra functionality to update the appropriate user records.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
How do i count them though? how do i know userA is makeing 4,000 queries/hour and userB is making 40,000 queries/hour?
 
Create a table with two columns, a username column and a column of type timestamp.

Every time your code performs a query, add an entry to this table. All you have to add is the username, MySQL will automatically set the value of the timestamp column.

Then query this new table for information.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top