Bug #2505 MySQL reports "out of memory" when DROP USER if --skip-grant-tables
| Submitted: | 25 Jan 2004 8:58 | Modified: | 26 Jan 2004 8:33 |
|---|---|---|---|
| Reporter: | Guilhem Bichot | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 4.1 | OS: | Any (all) |
| Assigned to: | Sergei Glukhov | CPU Architecture: | Any |
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: Run mysqld with --skip-grant-tables and do drop user lkjzlljzdkz; How to repeat: Run mysqld with --skip-grant-tables and do drop user lkjzlljzdkz; Suggested fix: We have this: int open_grant_tables(THD *thd, TABLE_LIST *tables) { DBUG_ENTER("open_grant_tables"); if (!initialized) { send_error(thd, ER_OUT_OF_RESOURCES, ER(ER_OUT_OF_RESOURCES)); DBUG_RETURN(-1); } But when skip-grant-tables, initialized==0 ...