Red Hat Bugzilla – Bug 113960
[PATCH] Bug fix + enhancement for mysql_setpermission
Last modified: 2013-07-02 23:00:26 EDT
There is a bug in mysql_setpermission that it does not flush the privilege tables after changing a user's password. The one-liner fix is to flush privileges. There is no nice command to remove a database and the associated users, so I wrote an addition to mysql_setpermission that does just that. It is not real pretty, but I tried to stay (more or less) with the original code "style". I have not gone upstream with this patch, since I know (barring a licensing change on MySQL) we won't be seeing MySQL 4 or higher in a Red Hat release. Here's a patch with the above bug fix and enhancement.
Created attachment 97131 [details] bug fix and enhancement for mysql_setpermission command
I'm going to apply the password flush fix for FC2, since it's clearly a bug. I'm not too excited about local enhancements though --- I'd suggest submitting that part of the patch to MySQL AB. One hopes they'll eventually come to their senses about the licensing mess and patch their license to allow us to ship MySQL 4.*.
Patch is applied in mysql-3.23.58-8 for Fedora Core 2.
An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2004-597.html
An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2004-569.html