Clear all databases and objects with "clear" script
Registered by
Giuseppe Maxia
the current "clear" script does not remove objects (routines, events) associated with a database.
It does not remove databases other than "test".
To make "clear" more efficient, we need either to have a running server or to remove the data directory altogether and re-create it
Blueprint information
- Status:
- Complete
- Approver:
- Giuseppe Maxia
- Priority:
- Medium
- Drafter:
- Giuseppe Maxia
- Direction:
- Approved
- Assignee:
- Giuseppe Maxia
- Definition:
- Approved
- Series goal:
- Accepted for mysql-sandbox-1.99-alpha
- Implementation:
-
Implemented
- Milestone target:
- None
- Started by
- Giuseppe Maxia
- Completed by
- Giuseppe Maxia
Related branches
Related bugs
Bug #243272: the 'clear' command does not remove non test databases, routines/events | Fix Released |
Sprints
Whiteboard
modified "clear" script.
It first attempts at clearing all with SQL, if the server is on.
Then it deletes all directories under './data' except mysql
(?)
Work Items
Dependency tree

* Blueprints in grey have been implemented.