Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2006
    Location
    PA
    Posts
    26
    Plugin Contributions
    0

    Idea or Suggestion exceeded the 'max_questions' resource Error

    1226 User 'busybuds' has exceeded the 'max_questions' resource (current value: 50000)

    This is the error I had, the host manually reset so my site is back up but I want to fix the problem before it happens again.

    I spoke with the host and he said that I either have too much traffic (not that...I wish it was), a connection is not resetting or I should set up multiple users (up to 5) since they each have a value of 50000.

    Can anyone help me with this?

    Warning: Not a programmer, so please layman's terms.

    Thanks,

    Linda McVeigh

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: exceeded the 'max_questions' resource Error

    Do you have an URL we can peek at?

    Who are you hosting with?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jan 2006
    Location
    PA
    Posts
    26
    Plugin Contributions
    0

    Default Re: exceeded the 'max_questions' resource Error

    Right now the my site is working but it is www.busybuds.com and my host is ipowerweb.

    I called the host and they said that I can have 5 users with up to 50000 queries each and that I should alternate users. Not sure how to do that but I did check out the OsCommerce site and found that someone posted what is below between the lines. I tried this and was getting errors so went back to the way it was.

    It sounded like what the tech at Ipowerweb said but it didn't work for me.

    Would really appreciate help in keeping this error from shutting my site down temporarily.

    Thanks,

    Linda McVeigh

    -----------------------------------------------------------------------------
    DO NOT USE CODE BELOW AS IT IS NOT A FIX - CAUSES ERRORS
    ----------------------------------------------------------------------------
    replace:

    CODE
    define('DB_SERVER_USERNAME', 'your_username');


    with:
    CODE
    $db_user_array[] = "your_username"; //enter 1st user name
    $db_user_array[] = "your_username_1"; //enter 2nd user name
    $db_user_array[] = "your_username_2"; //enter 3rd user name
    $db_user_array[] = "your_username_3"; //enter 4th user name
    $db_user_array[] = "your_username_4"; //enter 5th user name


    //defined variable
    define( 'DB_SERVER_USERNAME', $db_user_array[ rand( 0, ( sizeof($db_user_array) -1 ) ) ] );


    // define('DB_SERVER_USERNAME', 'your_username');


    create 4 new db users in your control panel your_username_1, your_username_2, your_username_3, your_username_4 assign them to your database with the same password as the original.

    edit includes/configure.php and replace the same line.


    This removes the problem by sharing the queries across 4 extra users.

    --------------------------------------------------------------------------------------

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Re: exceeded the 'max_questions' resource Error

    This post is a variation on that:

    http://www.zen-cart.com/forum/showthread.php?t=24089
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 7 Feb 2012, 12:20 AM
  2. 1226 User '*****' has exceeded the 'max_questions' resource
    By nohope587 in forum General Questions
    Replies: 2
    Last Post: 12 Jul 2010, 09:23 PM
  3. Error 1226: has exceeded the 'max_questions' resource ?? Must log out and wait.
    By powpcs in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 9 Jul 2010, 05:32 AM
  4. exceeded the 'max_questions' resource Error
    By busybuds in forum General Questions
    Replies: 3
    Last Post: 26 Jul 2006, 12:21 PM
  5. Replies: 6
    Last Post: 2 Jun 2006, 04:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR