-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support IDENTIFIED VIA in CREATE/ALTER USER statements
- Loading branch information
Showing
12 changed files
with
380 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER USER 'user'@'hostname' IDENTIFIED VIA mysql_native_password BY 'password'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
{ | ||
"query": "ALTER USER 'user'@'hostname' IDENTIFIED VIA mysql_native_password BY 'password';", | ||
"lexer": { | ||
"@type": "PhpMyAdmin\\SqlParser\\Lexer", | ||
"PARSER_METHODS": [ | ||
"parseDelimiter", | ||
"parseWhitespace", | ||
"parseNumber", | ||
"parseComment", | ||
"parseOperator", | ||
"parseBool", | ||
"parseString", | ||
"parseSymbol", | ||
"parseKeyword", | ||
"parseLabel", | ||
"parseUnknown" | ||
], | ||
"KEYWORD_NAME_INDICATORS": [ | ||
"FROM", | ||
"SET", | ||
"WHERE" | ||
], | ||
"OPERATOR_NAME_INDICATORS": [ | ||
",", | ||
"." | ||
], | ||
"str": "ALTER USER 'user'@'hostname' IDENTIFIED VIA mysql_native_password BY 'password';", | ||
"len": 80, | ||
"last": 80, | ||
"list": { | ||
"@type": "PhpMyAdmin\\SqlParser\\TokensList", | ||
"tokens": [ | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": "ALTER", | ||
"value": "ALTER", | ||
"keyword": "ALTER", | ||
"type": 1, | ||
"flags": 3, | ||
"position": 0 | ||
}, | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": " ", | ||
"value": " ", | ||
"keyword": null, | ||
"type": 3, | ||
"flags": 0, | ||
"position": 5 | ||
}, | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": "USER", | ||
"value": "USER", | ||
"keyword": "USER", | ||
"type": 1, | ||
"flags": 33, | ||
"position": 6 | ||
}, | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": " ", | ||
"value": " ", | ||
"keyword": null, | ||
"type": 3, | ||
"flags": 0, | ||
"position": 10 | ||
}, | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": "'user'@'hostname'", | ||
"value": "user@hostname", | ||
"keyword": null, | ||
"type": 8, | ||
"flags": 4, | ||
"position": 11 | ||
}, | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": " ", | ||
"value": " ", | ||
"keyword": null, | ||
"type": 3, | ||
"flags": 0, | ||
"position": 28 | ||
}, | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": "IDENTIFIED VIA", | ||
"value": "IDENTIFIED VIA", | ||
"keyword": "IDENTIFIED VIA", | ||
"type": 1, | ||
"flags": 23, | ||
"position": 29 | ||
}, | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": " ", | ||
"value": " ", | ||
"keyword": null, | ||
"type": 3, | ||
"flags": 0, | ||
"position": 43 | ||
}, | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": "mysql_native_password", | ||
"value": "mysql_native_password", | ||
"keyword": null, | ||
"type": 0, | ||
"flags": 0, | ||
"position": 44 | ||
}, | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": " ", | ||
"value": " ", | ||
"keyword": null, | ||
"type": 3, | ||
"flags": 0, | ||
"position": 65 | ||
}, | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": "BY", | ||
"value": "BY", | ||
"keyword": "BY", | ||
"type": 1, | ||
"flags": 3, | ||
"position": 66 | ||
}, | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": " ", | ||
"value": " ", | ||
"keyword": null, | ||
"type": 3, | ||
"flags": 0, | ||
"position": 68 | ||
}, | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": "'password'", | ||
"value": "password", | ||
"keyword": null, | ||
"type": 7, | ||
"flags": 1, | ||
"position": 69 | ||
}, | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": ";", | ||
"value": ";", | ||
"keyword": null, | ||
"type": 9, | ||
"flags": 0, | ||
"position": 79 | ||
}, | ||
{ | ||
"@type": "PhpMyAdmin\\SqlParser\\Token", | ||
"token": null, | ||
"value": null, | ||
"keyword": null, | ||
"type": 9, | ||
"flags": 0, | ||
"position": null | ||
} | ||
], | ||
"count": 15, | ||
"idx": 0 | ||
}, | ||
"DEFAULT_DELIMITER": ";", | ||
"delimiter": ";", | ||
"delimiterLen": 1, | ||
"strict": false, | ||
"errors": [] | ||
}, | ||
"parser": null, | ||
"errors": { | ||
"lexer": [], | ||
"parser": [] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE USER 'user'@'hostname' IDENTIFIED VIA mysql_native_password BY 'password'; |
Oops, something went wrong.