Unix Technical Forum

How to limit usage of mysql server's memory/cpu for each databases ?

This is a discussion on How to limit usage of mysql server's memory/cpu for each databases ? within the MySQL General forum forums, part of the MySQL category; --> I use mysql4.1.22, php4.4.6 and apache2.0.59. I want to put an quota for each databases and mysql users. How ...


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 06:20 AM
Halid Faith
 
Posts: n/a
Default How to limit usage of mysql server's memory/cpu for each databases ?

I use mysql4.1.22, php4.4.6 and apache2.0.59.
I want to put an quota for each databases and mysql users. How can I do that
mysql will limit each database's memory usage? Because some mysql users
sometimes use much memory while doing a sql query.
Also How can I put an quota for each databases as data size ( like 1 Mbyte )
?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 06:20 AM
B. Keith Murphy
 
Posts: n/a
Default Re: How to limit usage of mysql server's memory/cpu for each databases?

Halid Faith wrote:
> I use mysql4.1.22, php4.4.6 and apache2.0.59.
> I want to put an quota for each databases and mysql users. How can I
> do that
> mysql will limit each database's memory usage? Because some mysql users
> sometimes use much memory while doing a sql query.
> Also How can I put an quota for each databases as data size ( like 1
> Mbyte )
> ?
>
>
>
>

Halid,

I don't think there is any way to do this from within MySQL. If you
were ambitious you could implement the datasize quota with some type of
script.

Hope that helps.

Keith
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com