ptouch Posted January 2, 2007 Share Posted January 2, 2007 HELP EMERGENCY i can't see my website nor fix anything in admin i tried to read up on what BOXTEL suggested but i dont kno how to dd users in my database? i get this error in my admin control pannel 1226 - User 'breakgir_p_os2' has exceeded the 'max_questions' resource (current value: 50000) select orders_status_name, orders_status_id from orders_status where language_id = '1' Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 3, 2007 Share Posted January 3, 2007 It means you have reached a limit set by your host. Wait for the cycle to reset and it wil work again (until you reach the limit once more). You could ask your host to increase the limit but they usually won't. In that case, if it is not something you want to put up with, you will need to change hosts. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
alexp4 Posted March 13, 2007 Share Posted March 13, 2007 I had the same issue, I just resolved it with others help. First of all create additional user names for your database then go into includes/configure.php and admin/includes/configure.php replace this define('DB_SERVER_USERNAME', 'username'); with // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers // define('DB_SERVER_USERNAME', 'username'); $DB_SERVER_USERNAME_group[] = "username2"; $DB_SERVER_USERNAME_group[] = "username3"; $DB_SERVER_USERNAME_group[] = "username4"; $DB_SERVER_USERNAME_group[] = "username5"; $DB_SERVER_USERNAME_group[] = "username6"; define('DB_SERVER_USERNAME', $DB_SERVER_USERNAME_group[ rand( 0, (sizeof($DB_SERVER_USERNAME_group)-1) ) ]); *Note username2 thru username6 are the additional user names you created for your database. Link to comment Share on other sites More sharing options...
nudylady Posted November 21, 2009 Share Posted November 21, 2009 yes, above method is good Link to comment Share on other sites More sharing options...
Jan Zonjee Posted November 21, 2009 Share Posted November 21, 2009 yes, above method is good But reducing the number of queries is obviously a better way. Link to comment Share on other sites More sharing options...
noott123 Posted March 17, 2012 Share Posted March 17, 2012 hi there guys. i too am having this problem. i understand that this is a fix: "First of all create additional user names for your database then go into includes/configure.php and admin/includes/configure.php replace this define('DB_SERVER_USERNAME', 'username'); with // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers // define('DB_SERVER_USERNAME', 'username'); $DB_SERVER_USERNAME_group[] = "username2"; $DB_SERVER_USERNAME_group[] = "username3"; $DB_SERVER_USERNAME_group[] = "username4"; $DB_SERVER_USERNAME_group[] = "username5"; $DB_SERVER_USERNAME_group[] = "username6"; define('DB_SERVER_USERNAME', $DB_SERVER_USERNAME_group[ rand( 0, (sizeof($DB_SERVER_USERNAME_group)-1) ) ]); *Note username2 thru username6 are the additional user names you created for your database. " My question is how does one create additional user names for the database? Any help would be most appreciated. Regards James Link to comment Share on other sites More sharing options...
Guest Posted May 5, 2012 Share Posted May 5, 2012 How do I create additional user names for my database. The above directions look easy enough after that point Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 5, 2012 Share Posted May 5, 2012 How do I create additional user names for my database. The above directions look easy enough after that point The user names are created in that code. It is the only change you need. You create the names and then the code randomly uses one. I think a better way would be cycle through them and check the result but the above will work. However, it is not the best solution. First, it may vilate the TOS of your host and get you suspened. Second, the extra connections come at a cost and may slow the avearage access time, depending upon how often it is failing. The best solution is get a hosting plan that will accomodate your shop. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.