How do I check if a user/password pair works without actually making a connection to the database? The DBMS in question is MySQL.
That was my original question. Since most people get this question wrong, then I should rephrase it as: How do I check if a MySQL username/password is valid, without connecting to MySQL as that user? (thanks to derobert)
I actually found a solution, check my answer below.