天天看點

mysql exceeded the 'max_questions' resource 記錄

最近Hive Meta的  Mysql 常報錯 'user' has exceeded the 'max_questions' resource (current value: 10000)  

解決:調高 max_questions 設定,直接修改user 表,然後重新整理權限 flush privileges.

探究:

max_questions/max_updates 每小時使用資源的時間限制,機關秒   max_connections:該使用者每小時允許打開的session數 max_user_connections:該使用者允許同時打開的session數   而要使這四項限制生效,需要在建立使用者或者給使用者授權的時候加上以下四種子句: max_questions : WITH MAX_QUERIES_PER_HOUR n max_updates : WITH MAX_UPDATES_PER_HOUR n max_connections : WITH MAX_CONNECTIONS_PER_HOUR n max_user_connections: MAX_USER_CONNECTIONS

轉載于:https://www.cnblogs.com/yako/p/7154637.html