Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Aug 2004
    Posts
    472

    Default Mysql database issue

    Hello,

    One of the server is actaully eating load due to mysql connection. I have a database that is actually taking lot of connections . What all measures we could do to rectify this? memory space increase or any measures like that? Please help.

    Regards,
    David

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    30

    Default

    Hi -

    If the connection is being made via a php script then make sure you have this in your php.ini file:

    [MySQL]
    ; Allow or prevent persistent links.
    mysql.allow_persistent=Off

    This will force non-persistent connections and help keep the load down!

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Making sure the MySQL query cache is set for your needs is always a good idea.

    There's a good article about it at http://www.databasejournal.com/featu...le.php/3110171

    There are also links from the article regarding minimising server load due to MySQL through correct MySQL config and correct table indexing, which are always worth a read.

  4. #4
    Member
    Join Date
    Dec 2002
    Posts
    315

    Default

    You can limit the no. of connections per user in /etc/my.cnf

  5. #5
    Member
    Join Date
    Aug 2004
    Posts
    472

    Default

    Thak you everyone

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 01-17-2011, 12:42 PM
  2. Replies: 2
    Last Post: 06-22-2009, 08:30 AM
  3. mysql issue with database/script
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-06-2005, 03:26 PM
  4. MySQL issue when Moving a downloaded DataBase from Plesk 7.5 to Cpanel
    By Forgotten_1 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-23-2005, 08:03 PM
  5. Transfering MySQL Database Issue
    By Tom Pyles in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-11-2003, 07:16 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube