setup a security mechanism (access db, LDAP server or anything out of mysql) to authenticate the username,pass.
Think that your solution should be scalable and intuitive.

also if there are really same databases with different
items you may concern using views inside mysql to provide some sort of access security.
-Good luck