I have a Rails 3 Application which uses MySQL Database.In my application Testing phase i am inserting lots of data for checking functionality of my application.After inserting lots of entries i am getting Mysql error like,
Mysql2::Error: User 'Databasename' has exceeded the 'max_questions' resource (current value: 10000): SELECT `users`.* FROM `users` WHERE `users`.`username` = 'admin' LIMIT 1
How to solve this error.Is there any Limit in Mysql ,if so how to override this.
Any help is Appreciated..
for testing purposes you can define it such as:
in MySQL
or:
if you put
0formax_questions– it means unlimitedNote: You may have to restart you Mysql server to take effect
of course you can just flush privileges: