| Bug #15662 | GRANT RELOAD fails from MyODBC; works from CLI | ||
|---|---|---|---|
| Submitted: | 11 Dec 2005 8:11 | Modified: | 11 Jul 2007 21:17 |
| Reporter: | Matthew Kerr | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 3.51.12 | OS: | Windows (Win XP) |
| Assigned to: | CPU Architecture: | Any | |
[11 Dec 2005 8:11]
Matthew Kerr
[11 Dec 2005 10:59]
Vasily Kishkin
Thanks for the bug report. I was able to reproduce the bug. ERROR (.\test.c:33): SQLExecDirect() *** [MySQL][ODBC 3.51 Driver][mysqld-5.0.16]Incorrect usage of DB GRANT and GLOBAL PRIVILEGES *** ODBC Code: HYT00, Driver Code: 1221 My test case is attached.
[11 Dec 2005 10:59]
Vasily Kishkin
Test case
Attachment: test.c (text/plain), 3.52 KiB.
[11 Jul 2007 21:17]
Jim Winstead
The syntax as given is wrong, it doesn't work from the CLI, either: mysql> GRANT RELOAD ON * TO 'admin'@'%' WITH GRANT OPTION; ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES The correct syntax is: GRANT RELOAD ON *.* TO 'admin'@'%' WITH GRANT OPTION;
