I didn’t have to do this, so take it with salt and a lot of help from “test, test, test”.
What happens if (in a safe test environment) you directly modify the Host column in the mysql.user and possibly mysql.db ? (For example, with the update statement.) I do not think MySQL uses the user host as part of the password encoding (the PASSWORD function does not assume that it does), but you will have to try to be sure. You may need to issue the FLUSH PRIVILEGES command (or stop and restart the server).
For some storage systems (for example, MyISAM), you may also need to check / change the .frm file for any types created by the user. The .frm file stores the qualifier, including the qualifier node. (I had to do this when moving databases between hosts, where there was an incorrect configuration, due to which the wrong host was recorded ...)
TJ Crowder Dec 16 '09 at 11:35 2009-12-16 11:35
source share