Work Around: Error SQL server exceeded max questions
by
10 Feb 2009
Rating: (1 vote
- 5.00 average)
vBulletin: 3.0x / 3.5x / 3.6x / 3.7x / 3.8x
- The server it self auto temp bans the mysql account in use. I am sure others may have ran into this issue. I have ran into many webhosts that because of "server loads" have a cap on max questions mySQL server can be given in a time frame. (1 hour in my case) This becomes a huge problem when doing maintenance of "Update Counters" in the AdminCP. One workaround is to create multiple mysql users in your hosting account. In config.php you randomly pick one of these users to connect to the database. This will spread the questions between users and since the limit is per user. This is not a perfect solution for if an account maxes out the script will stop, but you can usually overcome the problem. I set up 7 accounts in mySQL up on 1 database all using the same password. I ran 236,968 queries without a hiccup. Edit: includes/config.php Find: PHP Code:
//***** MASTER DATABASE USERNAME & PASSWORD ******
PHP Code:
//***** MASTER DATABASE USERNAME & PASSWORD ******
2) Also replace password with the correct password. |