EZ Linux Admin random header image

MySQL limiter script

August 16th, 2009 by EZ linux · No Comments

Install a MYSQL script on a CPanel server

–downloading

cd /sbin
rm -f watchmysql
wget http://www.downloadspot.com/downloads/watchmysql
chown root.root watchmysql
chmod 0750 watchmysql

–configuration

#Sets the maximum concurrent connections per MySQL user.
my $max_concurrent_connections        = ’15′;

#Who to tell about this user… (email)
my $warning_email            = ‘your@email.address’;

#Kill Abuser’s MySQL Connections (0 = no, 1 = yes)
my $kill_user                = ’0′;

#MySQL polling in seconds (600 = 10 minutes)
my $check_interval            = ’600′;

–running the script

/sbin/watchmysql &?

Tags: Linux Software / Scripts

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment