Suppose I have a test server with a large group of test accounts. Test accounts have unknown passwords that are hard-coded in application reports and stored in encrypted form in the mysql.users table.
Is there any option or hack that can be used to force mysql to use any text as the "correct" password for the account? For instance:
Update mysql.user Set Password="*" where 1=1
Note. The above line will not work because it will literally set the password to "*", not a wildcard. However, I am looking for a way to create a mysql account that will accept anything as a valid password. This computer is offline and I have full access to the mysql database ...
source
share