Bug #49896 | Foreign keys and deletion problems | ||
---|---|---|---|
Submitted: | 23 Dec 2009 17:14 | Modified: | 19 Jan 2010 15:01 |
Reporter: | Lig Isler-Turmelle | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Enterprise Monitor: Server | Severity: | S2 (Serious) |
Version: | 2.1.0.1096 | OS: | Any |
Assigned to: | Sloan Childers | CPU Architecture: | Any |
[23 Dec 2009 17:14]
Lig Isler-Turmelle
[23 Dec 2009 17:18]
MySQL Verification Team
Only workaround I can think of is to manually enter the MEM database and delete the relevant rows of the foreign key constraints making sure nothing else references those rows and then go through the UI for the user deletion. workable - but very ugly and prone to the possibility of mistakes.
[23 Dec 2009 22:17]
MySQL Verification Team
work around in detail: 1) log into the MEM repository (access information in the configuration_report.txt) 2) in the repository issue the following commands: mysql> use mem mysql> mysql> select user_id from users where name='dummy'; #replace dummy with user name +---------+ | user_id | +---------+ | 3 | <--- we will use this value in the next command +---------+ 1 row in set (0.00 sec) mysql> update rule_alarms set fixed_by_user_id = NULL where fixed_by_user_id = 3; # Again replace the fixed_by_user_id value with the user_id value given earlier 3) delete the user through the User Interface (Settings -> Manage Users). 4) restart the monitor shell> ./mysqlmonitorctl.sh restart The restart of the Monitor is to clear the cache for any alarms/rules or events the user was associated with.
[4 Jan 2010 20:34]
Enterprise Tools JIRA Robot
Andy Bang writes: Accidentally set to "Needs Review"
[14 Jan 2010 21:23]
Enterprise Tools JIRA Robot
Sloan Childers writes: fixed in 2.2, attempting to handle migration in 2.1 which didn't leave any schema revisions open
[14 Jan 2010 22:48]
Enterprise Tools JIRA Robot
Sloan Childers writes: patches pushed to both 2.1.1 and 2.2 trees
[15 Jan 2010 20:15]
Enterprise Tools JIRA Robot
Keith Russell writes: Patch installed in versions => 2.1.1.1139.
[19 Jan 2010 4:47]
Enterprise Tools JIRA Robot
Marcos Palacios writes: Verified fixed in Monitor build 2.1.1.1140.
[19 Jan 2010 15:01]
MC Brown
A note has been added to the 2.1.1 and 2.2.0 changelog.