Skip to content

Commit

Permalink
add sql command timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
0xor1 committed Dec 8, 2023
1 parent 391a0d5 commit c0f1fcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Common.Server.Test/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"useHttpsRedirection": false
},
"db": {
"connection": "Server=localhost;Database=Common;Uid=Common;Pwd=C0-Mm-0n-C0-Mm-0n"
"connection": "Server=localhost;Database=Common;Uid=Common;Pwd=C0-Mm-0n-C0-Mm-0n;default command timeout=10"
},
"session": {
"signatureKeys": [
Expand Down
10 changes: 5 additions & 5 deletions sql/common.sql
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ DO DELETE FROM FcmRegs WHERE CreatedOn < DATE_SUB(NOW(), INTERVAL 2 DAY);

DROP USER IF EXISTS 'Common'@'%';
CREATE USER 'Common'@'%' IDENTIFIED BY 'C0-Mm-0n-C0-Mm-0n';
GRANT SELECT ON Common.* TO 'Common'@'%';
GRANT INSERT ON Common.* TO 'Common'@'%';
GRANT UPDATE ON Common.* TO 'Common'@'%';
GRANT DELETE ON Common.* TO 'Common'@'%';
GRANT EXECUTE ON Common.* TO 'Common'@'%';
GRANT SELECT ON Common.* TO 'Common'@'%' WITH GRANT OPTION MAX_STATEMENT_TIME 10;
GRANT INSERT ON Common.* TO 'Common'@'%' WITH GRANT OPTION MAX_STATEMENT_TIME 10;
GRANT UPDATE ON Common.* TO 'Common'@'%' WITH GRANT OPTION MAX_STATEMENT_TIME 10;
GRANT DELETE ON Common.* TO 'Common'@'%' WITH GRANT OPTION MAX_STATEMENT_TIME 10;
GRANT EXECUTE ON Common.* TO 'Common'@'%' WITH GRANT OPTION MAX_STATEMENT_TIME 10;

0 comments on commit c0f1fcd

Please sign in to comment.